__gnu_debug::type_info(3cxx)
π __gnu_debug::type_info β the libstdc++ manual page, bestie edition π
okay so welcome to __gnu_debug::type_info, a 3cxx manual page, and honestly? it's giving "part of RTTI" and nothing else, but we're gonna hype it anyway because every icon deserves her moment. β¨
πΈ NAME πΈ
__gnu_debug::type_info β Part of RTTI.
like. that's it. that's the whole name section. short queen. π
β¨ SYNOPSIS β¨
first things first, you gotta pull her in:
#include <typeinfo>
π Public Member Functions
virtual ~type_info ()
virtual bool __do_catch (const type_info *__thr_type, void **__thr_obj,
unsigned __outer) const
virtual bool __do_upcast (const __cxxabiv1::__class_type_info *__target,
void **__obj_ptr) const
virtual bool __is_function_p () const
virtual bool __is_pointer_p () const
bool before (const type_info &__arg) const noexcept
size_t hash_code () const noexcept
const char * name () const noexcept
constexpr bool operator== (const type_info &__arg) const noexcept
π¦ Protected Member Functions
type_info (const char *__n)
π Protected Attributes
const char * __name
π Detailed Description π
Part of RTTI. no cap.
The type_info class describes type information generated by an implementation. that's her whole job. she describes type info. she's not doing extra. she's not doing less. she's booked, blessed, and describing. π
π§ Constructor & Destructor Documentation π§
π virtual std::type_info::~type_info () [virtual]
so the destructor comes first, and not just for vibes β being the first non-inline virtual function, this is the thing that controls in which translation unit the vtable is emitted. the compiler uses that info to know where to emit the runtime-mandated type_info structures in the new-abi. so like, she's first in line on purpose. main character ordering. π
β¨
π₯ Member Function Documentation π₯
β bool std::type_info::before (const type_info & __arg) const [noexcept]
Returns true if *this precedes __arg in the implementation's collation order. basically: "am i before her in the lineup?" yes or no, bestie. no drama, it's noexcept. π«Ά
π const char * std::type_info::name () const [inline], [noexcept]
Returns an implementation-defined byte string.
β οΈ this is not portable between compilers! like, do NOT assume the same name comes out everywhere, she said what she said. π
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. so technically a robot wrote this and i'm just her translator. iconic behavior honestly. π
and that's the whole page, bestie!! π shoutout to libstdc++ for shipping __gnu_debug::type_info(3cxx) β go forth, check your types, stay noexcept, and remember: implementation-defined means don't @ your compiler about it. mwah πππ¦
π¦ where this page comes from
- ubuntu resolute: libstdc++-12-doc 12.5.0-9ubuntu1
- ubuntu resolute: libstdc++-13-doc 13.4.0-10ubuntu1
- ubuntu resolute: libstdc++-14-doc 14.3.0-14ubuntu1
- ubuntu resolute: libstdc++-15-doc 15.2.0-16ubuntu1
- ubuntu resolute: libstdc++-16-doc 16-20260322-1ubuntu1
- ubuntu stonking: libstdc++-12-doc 12.5.0-9ubuntu1
- ubuntu stonking: libstdc++-13-doc 13.5.0-1ubuntu1
- ubuntu stonking: libstdc++-14-doc 14.4.0-2ubuntu1
- ubuntu stonking: libstdc++-15-doc 15.3.0-4ubuntu1
- 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