std::basic_const_iterator<Iter>:: basic_const_iterator
From cppreference.net
<
cpp
|
iterator
|
basic const iterator
C++
Iterator library
| Iterator concepts | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Iterator primitives | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Algorithm concepts and utilities | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Indirect callable concepts | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Common algorithm requirements | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Utilities | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Iterator adaptors | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::basic_const_iterator
| Member functions | ||||
|
basic_const_iterator::basic_const_iterator
|
||||
| Non-member functions | ||||
|
(C++23)
(C++23)
(C++23)
(C++23)
|
||||
|
(C++23)
|
||||
|
(C++23)
|
||||
| Helper classes | ||||
|
basic_const_iterator
(
)
requires
std::
default_initializable
<
Iter
>
=
default
;
|
(1) | (C++23以降) |
|
constexpr
basic_const_iterator
(
Iter x
)
;
|
(2) | (C++23以降) |
|
template
<
std::
convertible_to
<
Iter
>
U
>
constexpr basic_const_iterator ( basic_const_iterator < U > other ) ; |
(3) | (C++23以降) |
|
template
<
/*different-from*/
<
basic_const_iterator
>
T
>
requires
std::
convertible_to
<
T, Iter
>
|
(4) | (C++23以降) |
新しいイテレータアダプタを構築します。
1)
デフォルトコンストラクタ。基盤となるイテレータは値初期化されます。
2)
基盤となるイテレータは
std
::
move
(
x
)
で初期化されます。
3)
基となるイテレータは
other
のイテレータで初期化されます。
4)
基となるイテレータは
std::
forward
<
T
>
(
x
)
で初期化されます。
パラメータ
| x | - | アダプトするイテレータ |
| other | - | コピーするイテレータアダプタ |
例
|
このセクションは不完全です
理由: 例がありません |
関連項目
他の
basic_const_iterator
を代入する
(公開メンバ関数) |