std::counted_iterator::operator*,-> - cppreference.com (original) (raw)
constexpr decltype(auto) operator*(); | (1) | (since C++20) |
---|---|---|
constexpr decltype(auto) operator*() const requires /*dereferenceable*/<const I>; | (2) | (since C++20) |
constexpr auto operator->() const noexcept requires std::contiguous_iterator<I>; | (3) | (since C++20) |
1,2) Returns a reference to the current element. The behavior is undefined if this->count() <= 0. The function's body is equivalent to return *current;.
- Returns a pointer to the current element. The function's body is equivalent to return std::to_address(current);.
[edit] Parameters
(none)
[edit] Return value
Reference or pointer to the current element.