cppreference.com
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
View
Edit
History
Actions
std::ranges::enumerate_view<V>::
iterator
<Const>::
index
From cppreference.com
<
cpp
|
ranges
|
enumerate view
|
iterator
C++
Compiler support
Freestanding and hosted
Language
Standard library
Standard library headers
Named requirements
Feature test macros
(C++20)
Language support library
Concepts library
(C++20)
Metaprogramming library
(C++11)
Diagnostics library
General utilities library
Strings library
Containers library
Iterators library
Ranges library
(C++20)
Algorithms library
Numerics library
Localizations library
Input/output library
Filesystem library
(C++17)
Regular expressions library
(C++11)
Concurrency support library
(C++11)
Execution support library
(C++26)
Technical specifications
Symbols index
External libraries
[edit]
Ranges library
Range access
begin
cbegin
end
cend
rbegin
crbegin
rend
crend
size
ssize
data
cdata
empty
Range conversions
std::from_range_t
std::from_range
(C++23)
(C++23)
to
(C++23)
Dangling iterator handling
dangling
borrowed_iterator_t
borrowed_subrange_t
Range primitives
range_size_t
range_difference_t
range_value_t
elements_of
(C++23)
iterator_t
const_iterator_t
sentinel_t
const_sentinel_t
(C++23)
(C++23)
range_reference_t
range_const_reference_t
range_rvalue_reference_t
range_common_reference_t
(C++23)
Range concepts
range
borrowed_range
sized_range
common_range
view
viewable_range
input_range
output_range
forward_range
bidirectional_range
random_access_range
contiguous_range
constant_range
(C++23)
Views
view_interface
subrange
Range factories
empty_view
views::empty
single_view
views::single
basic_istream_view
views::istream
iota_view
views::iota
repeat_view
views::repeat
(C++23)
(C++23)
Range adaptors
views::all_t
views::all
ref_view
owning_view
as_rvalue_view
views::as_rvalue
(C++23)
(C++23)
filter_view
views::filter
transform_view
views::transform
take_view
views::take
take_while_view
views::take_while
concat_view
views::concat
(C++26)
(C++26)
drop_view
views::drop
drop_while_view
views::drop_while
join_view
views::join
join_with_view
views::join_with
(C++23)
(C++23)
lazy_split_view
views::lazy_split
split_view
views::split
views::counted
common_view
views::common
reverse_view
views::reverse
as_const_view
views::as_const
(C++23)
(C++23)
elements_view
views::elements
keys_view
views::keys
values_view
views::values
enumerate_view
views::enumerate
(C++23)
(C++23)
zip_view
views::zip
(C++23)
(C++23)
zip_transform_view
views::zip_transform
(C++23)
(C++23)
adjacent_view
views::adjacent
(C++23)
(C++23)
views::pairwise
(C++23)
adjacent_transform_view
views::adjacent_transform
(C++23)
(C++23)
views::pairwise_transform
(C++23)
chunk_view
views::chunk
(C++23)
(C++23)
slide_view
views::slide
(C++23)
(C++23)
chunk_by_view
views::chunk_by
(C++23)
(C++23)
stride_view
views::stride
(C++23)
(C++23)
cartesian_product_view
views::cartesian_product
(C++23)
(C++23)
Range generators
std::generator
(C++23)
Range adaptor closure objects
range_adaptor_closure
(C++23)
Range adaptor objects
Helper items
copyable-box
movable-box
(until C++23)
(C++23)
simple-view
non-propagating-cache
[edit]
std::ranges::enumerate_view
Member functions
enumerate_view::enumerate_view
enumerate_view::base
enumerate_view::begin
enumerate_view::end
enumerate_view::size
Deduction guides
Nested classes
Iterator
enumerate_view::
iterator
::
iterator
enumerate_view::
iterator
::base
enumerate_view::
iterator
::index
enumerate_view::
iterator
::operator*
enumerate_view::
iterator
::operator[]
enumerate_view::
iterator
::operator++
enumerate_view::
iterator
::operator++
(int)
enumerate_view::
iterator
::operator--
enumerate_view::
iterator
::operator--
(int)
enumerate_view::
iterator
::operator+=
enumerate_view::
iterator
::operator-=
operator==
(enumerate_view::
iterator
)
operator<=>
(enumerate_view::
iterator
)
operator+
(enumerate_view::
iterator
)
operator-
(enumerate_view::
iterator
)
iter_move
(enumerate_view::
iterator
)
Sentinel
enumerate_view::
sentinel
::
sentinel
enumerate_view::
sentinel
::base
operator==
(enumerate_view::
iterator
,enumerate_view::
sentinel
)
operator-
(enumerate_view::
iterator
,enumerate_view::
sentinel
)
[edit]
constexpr
difference_type index
(
)
const
noexcept
;
(since C++23)
Returns the underlying index
pos_
of the current element. Equivalent to:
return
pos_
;
.
[
edit
]
Parameters
(none)
[
edit
]
Example
This section is incomplete
Reason: no example
Category
:
Todo no example