Namespaces
Variants
Views
Actions

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

From cppreference.com
Revision as of 07:58, 25 June 2018 by T. Canens (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 container.

If the container 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]