std:: projected_value_t
| Iterator concepts | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Iterator primitives | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Algorithm concepts and utilities | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Indirect callable concepts | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Common algorithm requirements | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Utilities | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Iterator adaptors | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
定義先ヘッダ
<iterator>
|
||
|
template
<
std::
indirectly_readable
I,
std::
indirectly_regular_unary_invocable
<
I
>
Proj
>
|
(C++26以降) | |
エイリアステンプレート
projected_value_t
は、
Proj
を
std::
iter_value_t
<
I
>
&
に適用した結果の型から、参照と最上位のCV修飾子を取り除くことで値型を取得します。
projected_value_t
は、
ranges::
contains
などの一部のアルゴリズムにおいてデフォルト値の型を決定するために使用されます。
目次 |
テンプレートパラメータ
| I | - | 間接的に読み取り可能な型 |
| Proj | - |
I
の値型への左辺値参照に適用される射影
|
注記
| 機能テスト マクロ | 値 | 標準 | 機能 |
|---|---|---|---|
__cpp_lib_algorithm_default_value_type
|
202403L
|
(C++26) |
std::projected_value_t
を使用したアルゴリズム値のデフォルトテンプレート型
|
例
|
このセクションは不完全です
理由: 例がありません |
関連項目
|
(C++20)
|
間接的に読み取り可能な型の集合をデリファレンスした結果に対して呼び出し可能オブジェクトを呼び出した結果を計算する
(エイリアステンプレート) |
|
(C++20)
|
射影を受け入れるアルゴリズムの制約を指定するためのヘルパーテンプレート
(エイリアステンプレート) |