__GNU_PBDS::DETAIL::RC(3cxx)
π NAME
__gnu_pbds::detail::rc< _Node, _Alloc > β bestie, it's a Redundant binary counter, and that is literally the entire personality. This page lives in the 3cxx manual, so likeβ¦ welcome to the libstdc++ cinematic universe πβ¨
β¨ SYNOPSIS
#include <rc.hpp>
πΈ Public Types
typedef entry_const_pointer const_iteratorβ the const iterator type, slaying under the nameconst_iteratorπtypedef node_pointer entryβ anentryis anode_pointer. that's the whole typedef, no notes π
π Public Member Functions
rc (const rc &)β copy constructor, so you can clone the whole vibe π«Άconst const_iterator begin () constβ hands you theconst_iteratorpointing at the start, const-correct and everything β¨void clear ()β wipes it, returns nothing, no drama π§Ήbool empty () constβ vibe check: is it empty or not,bool-style πconst const_iterator end () constβ theconst_iteratorfor the end, const, iconic πvoid pop ()β pops. that's it. that's the function πvoid push (entry)β pushes anentryin there, no return value, we move πΈsize_type size () constβ how many, as asize_type, const, periodt βvoid swap (rc &)β swaps contents with anotherrc &, both parties changed, mutual glow-up π₯node_pointer top () constβ gives you the top as anode_pointer, const, no cap π
π₯ Detailed Description
template<typename _Node, typename _Alloc>
class __gnu_pbds::detail::rc< _Node, _Alloc >
And the description? "Redundant binary counter." That's it. That's the whole thing π not me getting one (1) sentence of lore. Two template params, _Node and _Alloc, both living their best lives, and a one-liner bio. main character energy honestly π¦
ngl there is genuinely nothing more written here β I'm not gonna invent lore that isn't in the source, that would be a lie and lying is not the vibe π
π«Ά Author
Generated automatically by Doxygen for libstdc++ from the source code. So nobody hand-wrote this, a robot did, and it ate π€β¨
And that's the whole page, bestie β straight from the libstdc++ 3cxx manual, generated automatically by Doxygen from the source code, no date on the footer so don't come for me about timestamps πππ¦
π¦ where this page comes from
- debian trixie: libstdc++-12-doc 12.4.0-5
- debian trixie: libstdc++-13-doc 13.3.0-16
- debian trixie: libstdc++-14-doc 14.2.0-19
- ubuntu noble: libstdc++-10-doc 10.5.0-4ubuntu2
- ubuntu noble: libstdc++-10-doc 10.5.0-4ubuntu2.1
- ubuntu noble: libstdc++-11-doc 11.4.0-9ubuntu1
- ubuntu noble: libstdc++-11-doc 11.5.0-1ubuntu1~24.04.1
- ubuntu noble: libstdc++-12-doc 12.3.0-17ubuntu1
- ubuntu noble: libstdc++-12-doc 12.4.0-2ubuntu1~24.04.1
- ubuntu noble: libstdc++-13-doc 13.2.0-23ubuntu4
- ubuntu noble: libstdc++-13-doc 13.3.0-6ubuntu2~24.04.1
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- ubuntu noble: libstdc++-14-doc 14.2.0-4ubuntu2~24.04.1
- ubuntu questing: libstdc++-11-doc 11.5.0-7ubuntu1
- ubuntu questing: libstdc++-11-doc 11.5.0-7ubuntu1.1
- ubuntu questing: libstdc++-12-doc 12.5.0-6ubuntu1
- ubuntu questing: libstdc++-13-doc 13.4.0-4ubuntu1
- ubuntu questing: libstdc++-14-doc 14.3.0-8ubuntu1
- ubuntu questing: libstdc++-15-doc 15.2.0-4ubuntu4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms