__GNU_PBDS::DETAIL::TYPE_BASE(3cxx)

πŸ“¦
version 9.5.0 Β· 3 versions
, in ubuntu noble

🌸 NAME 🌸

__gnu_pbds::detail::type_base< Key, Mapped, _Alloc, Store_Hash > β€” bestie, this is the Primary template. That's literally its whole job description, and it's serving.


✨ SYNOPSIS ✨

okay so this one is a parent, and its children are out here inheriting everything it owns. The nepo babies in question are:

  • __gnu_pbds::detail::types_traits< Key, Mapped, _Alloc, false >
  • __gnu_pbds::detail::types_traits< Key, Mapped, _Alloc, Store_Hash >

like yes, one of them hardcodes false and the other keeps Store_Hash as an actual template param. both valid. both iconic. πŸ’…


πŸ’– Detailed Description πŸ’–

alright, deep dive time. The actual shape of this thing is:

template<typename Key, typename Mapped, typename _Alloc, bool Store_Hash>
struct __gnu_pbds::detail::type_base< Key, Mapped, _Alloc, Store_Hash >

and its entire personality is: "Primary template. β€” that's the quote, that's the moment. Nothing more to say, it's giving foundational.

fr fr, if you ever need to go look at it with your own two eyes: Definition at line 107 of file types_traits.hpp. πŸ¦‹

lowkey a fun one to open in your editor just to see the whole types_traits.hpp family tree. no cap. 🌈

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for libstdc++ from the source code. Not a human, not a poet, just Doxygen doing its lil thing and honestly? it ate. πŸ€–βœ¨


and that's the whole page bestie 🫢 this was libstdc++'s take on __gnu_pbds::det...c, Store_Hash > in section 3cxx β€” go forth and template responsibly, mwah πŸ’–πŸŽ€

πŸ“¦ where this page comes from