std::ranges::transform_view<V,F>:: iterator <Const>:: operator[]
|
||||||||||||||||||||||
| Range primitives | |||||||
|
|||||||
| Range concepts | |||||||||||||||||||
|
|||||||||||||||||||
| Range factories | |||||||||
|
|||||||||
| Range adaptors | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||
| Helper items | |||||||||||||||||
|
|
||||||||||||||||
| Member functions | ||||
|
(C++26)
|
||||
| Deduction guides | ||||
| Iterator | ||||
|
transform_view::
iterator
::operator[]
|
||||
| Sentinel | ||||
|
constexpr
decltype
(
auto
)
operator
[
]
(
difference_type n
)
const
requires ranges:: random_access_range < Base > ; |
(depuis C++20) | |
Retourne l'élément à l'emplacement relatif spécifié, après transformation.
Retourne effectivement
std::
invoke
(
*
parent_
-
>
fun_, current_
[
n
]
)
, où
*
parent_
-
>
fun_
est la fonction de transformation stockée dans le parent
transform_view
, et
current_
est l'itérateur sous-jacent vers
V
.
Paramètres
| n | - | position relative à l'emplacement actuel. |
Valeur de retour
l'élément transformé
Exemple
|
Cette section est incomplète
Raison : aucun exemple |