STD::RANGES::ELEMENTS_OF(3cxx)
β¨ NAME β¨
std::ranges::elements_of< _Range, _Alloc > β bestie, this is a lil struct in the C++ standard library and it's literally just vibes and two public members π«Ά
π¦ SYNOPSIS π¦
Okay so first things first, you gotta pull in the header:
#include <generator>
That's the whole entrance fee. No cap. π
π Public Attributes
Two public members, that's it, that's the girlboss:
_Alloc allocatorβ an allocator, chillin' right there in public_Range rangeβ and a range, also out here in the open for everyone to see
πΈ Detailed Description
Here's the actual declaration, copied character for character so you know exactly what you're dealing with:
template<range _Range, typename _Alloc = allocator<byte>>
struct std::ranges::elements_of< _Range, _Alloc >"
(Yes the trailing quote mark is in there, I don't make the rules, I just report them π)
So like β it's a template over a _Range that has to satisfy range, and an _Alloc that defaults to allocator<byte>. The way that it bakes the allocator default right into the template parameter list? Iconic. It's giving "here's a range, here's how you want its elements allocated, go off." β¨
β Since
C++23, babes. That's the era. If your compiler is stuck in the past this whole thing is gonna be a no from it. π°οΈ
π Author
This little page was generated automatically by Doxygen for libstdc++ from the source code. Not a human author, not a ghostwriter with a caffeine problem, just Doxygen doing its thing on autopilot. π€
Reminder bestie: every single flag, member, default and version number above is straight from the source β I changed the vibe, not the facts. π«Ά
And that's the whole page!! Generated by Doxygen for libstdc++, sitting in the 3cxx manual section β the libst footer energy and all. Mwah. Study it, love it, run it, slay. πβ¨ππ¦
π¦ where this page comes from
- ubuntu stonking: libstdc++-16-doc 16.2.0-3ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms