__gnu_debug::type_info(3cxx)

πŸ“¦
version 16-20260322 Β· 2 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– __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 πŸ’‹πŸŽ€πŸ¦‹