std::ranges...hunk_by_view(3)
std::ranges::chunk_by_view::chunk_by_view π
okay bestie, welcome to the C++ Standard Libary manual page for std::ranges::chunk_by_view::chunk_by_view β yes, that's the constructor page, and yes, that's literally how the manual spells "Libary" up top π. We're keeping it cute and keeping every detail, periodt.
β¨ NAME β¨
std::ranges::chunk_by_view::chunk_by_viewβstd::ranges::chunk_by_view::chunk_by_view
This is the constructor for chunk_by_view; the page repeats the name because the manual said "twice is nice" π.
π SYNOPSIS π
copying the synopsis exactly, line wraps and all, because we do not mess with code:
chunk_by_view()
requires std::default_initializable<V> && (1) (since
C++23)
std::default_initializable<Pred>
= default;
constexpr explicit chunk_by_view( V base, Pred pred ); (2) (since
C++23)
okay so this thing constructs a chunk_by_view. That's the whole plot, no cap.
- (1) Default constructor. Value-initializes the underlying data members via their respective default member initializers:
- the view
base_via= V(), - the binary predicate
pred_via= Pred(). It's= default;and only there whenrequires std::default_initializable<V> && std::default_initializable<Pred>β since C++23, bestie. β¨
- the view
- (2) Move constructs the underlying data members:
- the view
base_withstd::move(base), - the binary predicate
pred_withstd::move(pred). This one isconstexpr explicit chunk_by_view( V base, Pred pred );, since C++23. π₯
- the view
π§ PARAMETERS π§
baseβ the view to split. πͺpredβ the function object (a binary predicate) used as a splitting criteria. π―
π EXAMPLE π
This section is incomplete. π Reason: no example.
Not me showing up to the group chat with zero examples... but that's literally what the page says, so we're not inventing one. π
π·οΈ CATEGORY: π·οΈ
Todo no example
hugs and kisses from http://cppreference.com, dated 2024.06.10, page std::ranges...hunk_by_view(3) π«Άπ
π¦ 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