Namespaces
Variants
Views
Actions

std::set::begin, std::set::cbegin

From cppreference.com
< cpp‎ | container‎ | set
Revision as of 11:11, 2 November 2012 by P12bot (Talk | contribs)

iterator begin();
const_iterator begin() const;
const_iterator cbegin() const;
(since C++11)

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

Exceptions

(none) (until C++11)
noexcept specification:  
noexcept
  
(since C++11)

Complexity

Constant

See also

returns an iterator to the end
(public member function) [edit]