__gnu_debug::type_info(3)

πŸ“¦
version 16.2.1+r23+gd564253eb6c8 Β· 2 versions
, in arch rolling, fedora 44

πŸ’– __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) 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. 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