Namespaces
Variants
Views
Actions

std::map<Key,T,Compare,Allocator>::begin, std::map<Key,T,Compare,Allocator>::cbegin

From cppreference.com
< cpp‎ | container‎ | map
 
 
 
 
iterator begin();
(1) (noexcept since C++11)
(constexpr since C++26)
const_iterator begin() const;
(2) (noexcept since C++11)
(constexpr since C++26)
const_iterator cbegin() const noexcept;
(3) (since C++11)
(constexpr since C++26)

Returns an iterator to the first element of *this.

If *this is empty, the returned iterator will be equal to end().

range-begin-end.svg

Contents

[