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
(
)
требует
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
>
требует
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
(public member function) |