Implementation specific information about a type.
More...
#include <type_info.hpp>
|
| 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.
|
Implementation specific information about a type.
Definition at line 142 of file type_info.hpp.
◆ 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
-
| Type | Type for which to construct a type info object. |
Definition at line 149 of file type_info.hpp.
◆ hash()
| id_type entt::type_info::hash |
( |
| ) |
const |
|
inlinenodiscardconstexprnoexcept |
◆ index()
| id_type entt::type_info::index |
( |
| ) |
const |
|
inlinenodiscardconstexprnoexcept |
◆ name()
| stl::string_view entt::type_info::name |
( |
| ) |
const |
|
inlinenodiscardconstexprnoexcept |
◆ operator<=>()
| auto entt::type_info::operator<=> |
( |
const type_info & | other | ) |
const |
|
inlinenodiscardconstexprnoexcept |
Lexicographically compares two type info objects.
- Parameters
-
- 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
-
- 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: