std::basic_...nst_iterator(3)
πΈ NAME πΈ
okay bestie, welcome to std::basic_const_iterator::basic_const_iterator(3) β yes, that's the whole vibe β from the C++ Standard Libary manual (that spelling is literally what's on the page, no cap π).
This page is all about the constructors of std::basic_const_iterator::basic_const_iterator β¨.
π Synopsis π
basic_const_iterator() requires std::default_initializable<Iter> =
(1) (since C++23)
default;
constexpr basic_const_iterator( Iter x );
(2) (since C++23)
template< std::convertible_to<Iter> U >
(3) (since C++23)
constexpr basic_const_iterator( basic_const_iterator<U> other );
template< /*different-from*/<basic_const_iterator> T >
requires std::convertible_to<T, Iter>
(4) (since C++23)
constexpr basic_const_iterator( T&& x );
Constructs a new iterator adaptor. periodt π
- (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).
π Parameters π
xβ iterator to adapt π¦otherβ iterator adaptor to copy π
π§ Example π§
This section is incomplete Reason: no example
not me being sad about the missing example π but that's literally what it says.
π See also π
operator=β assigns another iterator adaptor (public member function)
π Category π
* Todo no example
mwah π sign-off moment: source is http://cppreference.com, version/date is 2024.06.10, and the footer shorthand is std::basic_...nst_iterator(3). byeee bestie π«Άπ
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms