EnTT 4.0.0
Loading...
Searching...
No Matches
entt::type_info Struct Referencefinal

Implementation specific information about a type. More...

#include <type_info.hpp>

Public Member Functions

template<typename Type>
constexpr type_info (stl::in_place_type_t< Type >) noexcept
 Constructs a type info object for a given type.
constexpr id_type index () const noexcept
 Type index.
constexpr id_type hash () const noexcept
 Type hash.
constexpr stl::string_view name () const noexcept
 Type name.
constexpr bool operator== (const type_info &other) const noexcept
 Compares two type info objects.
constexpr auto operator<=> (const type_info &other) const noexcept
 Lexicographically compares two type info objects.

Detailed Description

Implementation specific information about a type.

Definition at line 142 of file type_info.hpp.

Constructor & Destructor Documentation

◆ type_info()

template<typename Type>
entt::type_info::type_info ( stl::in_place_type_t< Type > )
inlineconstexprnoexcept

Constructs a type info object for a given type.

Template Parameters
TypeType for which to construct a type info object.

Definition at line 149 of file type_info.hpp.

Member Function Documentation

◆ hash()

id_type entt::type_info::hash ( ) const
inlinenodiscardconstexprnoexcept

Type hash.

Returns
Type hash.

Definition at line 167 of file type_info.hpp.

◆ index()

id_type entt::type_info::index ( ) const
inlinenodiscardconstexprnoexcept

Type index.

Returns
Type index.

Definition at line 159 of file type_info.hpp.

◆ name()

stl::string_view entt::type_info::name ( ) const
inlinenodiscardconstexprnoexcept

Type name.

Returns
Type name.

Definition at line 175 of file type_info.hpp.

◆ operator<=>()

auto entt::type_info::operator<=> ( const type_info & other) const
inlinenodiscardconstexprnoexcept

Lexicographically compares two type info objects.

Parameters
otherA type info object.
Returns
The relative order between the two type info objects.

Definition at line 193 of file type_info.hpp.

◆ operator==()

bool entt::type_info::operator== ( const type_info & other) const
inlinenodiscardconstexprnoexcept

Compares two type info objects.

Parameters
otherA type info object.
Returns
True if the two type info objects are identical, false otherwise.

Definition at line 184 of file type_info.hpp.


The documentation for this struct was generated from the following file: