std::basic_const_iterator<Iter>::operator* - cppreference.com
From cppreference.com
|
|
(1) | (since C++23) |
|
|
(2) | (since C++23) |
Returns a reference or pointer to the const version of the current element.
1) Returns static_cast<std::iter_const_reference_t<Iter>>(*base()).
2) If Iter models contiguous_iterator, returns std::to_address(base()); otherwise, returns std::addressof(*base()).
Parameters
(none)
Return value
1) Reference-to-const that refers to the current element. The result may be a prvalue (e.g. if *base() is a prvalue).
2) Pointer-to-const that points to the current element.