Namespaces
Variants
Views
Actions

std::forward_list::begin, std::forward_list::cbegin

From cppreference.com
< cpp | container | forward list
Revision as of 15:51, 6 June 2011 by P12 (Talk | contribs)
iterator begin();
(since C++11)
const_iterator begin() const;
(since C++11)
const_iterator cbegin() const;
(since C++11)

Returns an iterator to the first element of the container.

range-begin-end.svg

Contents

Parameters

(none)

Return value

iterator to the first element

Exceptions

noexcept specification:  
noexcept
  (since C++11)

Complexity

Constant

See also

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