std::type_index(3cxx)
okay so this page is std::type_index from the libstdc++ manual, section 3cxx β pull up a chair bestie, we're wrapping a type. π
πΈ NAME πΈ
std::type_index β literally the class type_index. That's the name, and it's giving βsmall but mighty.β β¨
β¨ SYNOPSIS β¨
first things first, include the header:
#include <typeindex>
π Public Member Functions π
type_index (const type_info &__rhs) noexceptβ builds atype_indexfrom theconst type_info &__rhs, and yes it'snoexcept, no cap.size_t hash_code () const noexceptβ gives you back asize_thash code,const noexcept, slay.const char * name () const noexceptβ hands you the name as aconst char *,const noexcept, iconic.bool operator!= (const type_index &__rhs) const noexceptβ the not-equal check against__rhs, returnsbool,const noexcept.bool operator< (const type_index &__rhs) const noexceptβ the less-than check against__rhs, returnsbool,const noexcept.bool operator<= (const type_index &__rhs) const noexceptβ the less-than-or-equal check against__rhs, returnsbool,const noexcept.bool operator== (const type_index &__rhs) const noexceptβ the equality check against__rhs, returnsbool,const noexcept.bool operator> (const type_index &__rhs) const noexceptβ the greater-than check against__rhs, returnsbool,const noexcept.bool operator>= (const type_index &__rhs) const noexceptβ the greater-than-or-equal check against__rhs, returnsbool,const noexcept.
π¦ Detailed Description π¦
Class type_index.
The class type_index provides a simple wrapper for type_info which can be used as an index type in associative containers (23.6) and in unordered associative containers (23.7). That's the whole vibe: a cute lil wrapper so type_info can sit in associative containers and unordered associative containers as an index type. Lowkey iconic. π₯
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. So no mysterious human author bestie β Doxygen did the thing. π«Ά
kisses from the libstdc++ girlies π β source/version: libstdc++, page: std::type_index(3cxx), and the footer didn't show a date, so no invented date, periodt. π
π¦ where this page comes from
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms