__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 name const_iterator πŸ‘‘
  • typedef node_pointer entry β€” an entry is a node_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 the const_iterator pointing 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 β€” the const_iterator for the end, const, iconic 🌈
  • void pop () β€” pops. that's it. that's the function πŸ“
  • void push (entry) β€” pushes an entry in there, no return value, we move 🌸
  • size_type size () const β€” how many, as a size_type, const, periodt ⭐
  • void swap (rc &) β€” swaps contents with another rc &, both parties changed, mutual glow-up πŸ”₯
  • node_pointer top () const β€” gives you the top as a node_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 πŸ’œπŸŽ€πŸ¦‹