Namespaces
Variants
Actions

std::basic_const_iterator<Iter>::basic_const_iterator

From cppreference.com
 
C++
 
Iterator library
Iterator concepts
Iterator primitives
Algorithm concepts and utilities
Indirect callable concepts
Common algorithm requirements
(C++20)
(C++20)
(C++20)
Utilities
(C++20)
Iterator adaptors
Range access
(C++11)(C++14)
(C++14)(C++14)  
(C++11)(C++14)
(C++14)(C++14)  
(C++17)(C++20)
(C++17)
(C++17)
 
std::basic_const_iterator
basic_const_iterator() requires std::default_initializable<Iter> = default;
(1) (since C++23)
constexpr basic_const_iterator( Iter x );
(2) (since C++23)
template< std::convertible_to<Iter> U >
constexpr basic_const_iterator( basic_const_iterator<U> other );
(3) (since C++23)
template< /*different-from*/<basic_const_iterator> T >

    requires std::convertible_to<T, Iter>

constexpr basic_const_iterator( T&& x );
(4) (since C++23)

Constructs a new iterator adaptor.

1) Default constructor. The underlying iterator is value-initialized.
2) The underlying iterator is initialized with std::move(x).
3) The underlying iterator is initialized with that of other.
4) The underlying iterator is initialized with std::forward<T>(x).

[edit] Parameters

x - iterator to adapt
other - iterator adaptor to copy

[edit] Example

[edit] See also

assigns another basic_const_iterator
(public member function) [edit]

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant