bsl::list::cbegin

Return a const iterator to the first element, or end if empty.

Synopsis

Declared in <bslstl_list.h>

list<VALUE, ALLOCATOR>::const_iterator
cbegin() const noexcept;

Description

Return an iterator providing non-modifiable access to the first value_type object in the ordered sequence of value_type objects maintained by this list, or the end iterator if this list is empty.

Return Value

const iterator to the beginning, or past-the-end if empty