std::ranges...umerate_view(3)
π NAME π
okay so bestie, welcome to the std::ranges...umerate_view(3) page from the C++ Standard Libary π β and the name is a whole mouthful: std::ranges::enumerate_view::enumerate_view. Yep, that's the constructor for std::ranges::enumerate_view, and it's giving "say it three times fast" energy. π
β¨ Synopsis β¨
Here's the vibe check on the signatures, no cap:
- (1) (since C++23)
enumerate_view() requires std::default_initializable<V> = default;
- (2) (since C++23)
constexpr explicit enumerate_view( V base );
So what does it do? It constructs a enumerate_view β yes, the grammar is a little chaotic, but the function is clear. π«Ά
- Default constructor. It value-initializes the underlying view
base_. After construction,base()returns a copy ofV(). Cute, right? π - It initializes the underlying view
base_withstd::move(base). Move semantics slay. π₯
π Parameters π
baseβ the underlying view. That's it, that's the parameter. π¦
π¦ Example π¦
This section is incomplete. Reason: no example. π So yeah, no example to show off rn. Not me crying about it. π
π Category π
- Todo no example. π
That's the whole page, bestie! Shoutout to http://cppreference.com and the date 2024.06.10 β mwah π. Now go construct something iconic. β¨
π¦ 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