__gnu_debug::type_info(3)
π __gnu_debug::type_info π
okay bestie, welcome to the Library Functions Manual β¨ we're talking about __gnu_debug::type_info today, and she is literally just a little slice of RTTI doing her thing. no cap.
πΈ NAME πΈ
__gnu_debug::type_info β bestie she is Part of RTTI. that's the whole vibe. π«Ά
β¨ SYNOPSIS β¨
#include <typeinfo>
π Public Member Functions
virtual ~type_info ()β the destructor, she's virtual, she's first, she's iconic πvirtual bool __do_catch (const type_info *__thr_type, void **__thr_obj, unsigned __outer) constvirtual bool __do_upcast (const __cxxabiv1::__class_type_info *__target, void **__obj_ptr) constvirtual bool __is_function_p () constvirtual bool __is_pointer_p () constbool before (const type_info &__arg) const noexceptsize_t hash_code () const noexceptconst char * name () const noexceptconstexpr 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. yeah, that's her whole deal, she's not trying to be complicated fr fr.
the type_info class describes type information generated by an implementation. that's it, that's the tea. π
π Constructor & Destructor Documentation π
π virtual std::type_info::~type_info () [virtual]
Destructor first. Being the first non-inline virtual function, this controls in which translation unit the vtable is emitted. the compiler makes use of that information to know where to emit the runtime-mandated type_info structures in the new-abi. like, she's the main character and everything downstream depends on her placement, periodt. π
π₯ 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. so it's giving "am i alphabetically before you, bestie?" β and the answer is implementation's choice, not yours. π
β const char * std::type_info::name () const [inline], [noexcept]
Returns an implementation-defined byte string; this is not portable between compilers! like, do NOT go comparing these strings across compilers, that's a trap, i'm warning you with love π
πΈ Author πΈ
Generated automatically by Doxygen for libstdc++ from the source code. so technically not a human author, she was born from a doc generator, and honestly? still iconic.
and that's the whole page bestie!! π this was page __gnu_debug::type_info(3) from the libstdc++ crew, brought to you by the Library Functions Manual π
love u, go read your headers, mwah π«Άβ¨
π¦ where this page comes from
- arch rolling: gcc 16.2.1+r23+gd564253eb6c8-1 Β· GPL-3.0-or-later WITH GCC-exception-3.1 AND GFDL-1.3-or-later
- fedora 44: libstdc++-docs 16.0.1-0.10.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
- fedora 44: libstdc++-docs 16.2.1-2.fc44
- fedora 44: libstdc++-docs 16.2.1-3.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms