std::unordered_set<Key,Hash,KeyEqual,Allocator>::begin, (3) - Linux Manuals
std::unordered_set<Key,Hash,KeyEqual,Allocator>::begin,: std::unordered_set<Key,Hash,KeyEqual,Allocator>::begin,
NAME
std::unordered_set<Key,Hash,KeyEqual,Allocator>::begin, - std::unordered_set<Key,Hash,KeyEqual,Allocator>::begin,
Synopsis
iterator begin()
const_iterator begin()
const_iterator cbegin()
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
Parameters
(none)
Return value
Iterator to the first element
Complexity
Constant
Notes
Because both iterator and const_iterator are constant iterators
the same type), it is not possible to mutate the elements of the container through
an iterator returned by any of these member functions.
Example
// Run this code
(*iter)->y
std::cout
i->y
std::cout
Possible output:
See also
end
cend