std::basic_...nst_iterator(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

🌸 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. (1) Default constructor. The underlying iterator is value-initialized.
  2. (2) The underlying iterator is initialized with std::move(x).
  3. (3) The underlying iterator is initialized with that of other.
  4. (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