std::ranges...r::iterator(3)
π std::ranges...r::iterator(3) π
okay so bestie, this is the std::ranges...r::iterator(3) page from the C++ Standard Libary manual β yes, βLibaryβ is literally how itβs spelled in the header, iykyk ππ
. Weβre talking about the constructor for std::ranges::stride_view::iterator::iterator, and we are gonna get through every signature, every requirement, every tiny private little detail together. Periodt. β¨
β¨ NAME β¨
std::ranges::stride_view::iterator::iterator β std::ranges::stride_view::iterator::iterator
Itβs giving constructor energy, fr fr. π«Ά
πΈ SYNOPSIS πΈ
/*iterator*/()
requires std::default_initializable<ranges::iterator_t<Base>> (1)
(since C++23)
= default;
constexpr /*iterator*/( /*iterator*/<!Const> i )
requires Const and
std::convertible_to<ranges::iterator_t<V>, (2)
(since C++23)
ranges::iterator_t<Base>> and
std::convertible_to<ranges::sentinel_t<V>,
ranges::sentinel_t<Base>>;
private:
constexpr /*iterator*/( /*Parent*/& parent,
(exposition
ranges::iterator_t<Base> current, (3)
only*)
ranges::range_difference_t<Base> missing
= 0 );
Constructs an iterator. Thatβs the whole vibe of this page, no cap. π¦
π Constructs an iterator π
- Default constructor. It value-initializes:
current_withranges::iterator_t<Base>(),end_withranges::sentinel_t<Base>(),stride_with0,missing_with0.
- Conversion from
/*iterator*/<false>to/*iterator*/<true>. Initializes:current_withstd::move(i.current_),end_withstd::move(i.end_),stride_withi.stride_,missing_withi.missing_.
- A private constructor which is used by
stride_view::beginandstride_view::end. This constructor is not accessible to users. Initializes:current_withstd::move(current),end_withranges::end(parent->base_),stride_withparent->stride_,missing_withmissing.
bestie, that third one is private β not accessible to users β so donβt try to slide into its DMs ππ.
π PARAMETERS π
iβ an/*iterator*/<false>
π EXAMPLE π
This section is incomplete Reason: no example
not me crying over a missing example π no example bestie, itβs giving unfinished homework. π
π¦ CATEGORY π¦
- Todo no example
mwah π β this cutie came from http://cppreference.com, dated 2024.06.10. Later, 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