Namespaces
Variants
Views
Actions

std::{{{1}}}::begin, std::{{{1}}}::cbegin

From cppreference.com
Revision as of 07:11, 18 May 2020 by Space Mission (Talk | contribs)

iterator begin() noexcept;
(since {std})
const_iterator begin() const noexcept;
(since {std})
const_iterator cbegin() const noexcept;
(since {std})

Returns an iterator to the first element of the {{{1}}}.

If the {{{1}}} is empty, the returned iterator will be equal to end().

range-begin-end.svg

Contents

Parameters

(none)

Return value

Iterator to the first element.

Complexity

Constant.


Example

See also

returns an iterator to the end
(public member function of std::{{{1}}}) [edit]