EnTT: entt::type_info Struct Reference

EnTT 3.15.0

Loading...
Searching...
No Matches
Public Member Functions | List of all members
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 (std::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 std::string_view | name () const noexcept
| Type name.

## Detailed Description

Implementation specific information about a type.

Definition at line 133 of file type_info.hpp.

## Constructor & Destructor Documentation

## ◆ type_info()

template<typename Type>

entt::type_info::type_info | ( | std::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 140 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 158 of file type_info.hpp.

## ◆ index()

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

Type index.

Returns
  Type index.

Definition at line 150 of file type_info.hpp.

## ◆ name()

std::string_view entt::type_info::name | ( |  | ) | const
| inlinenodiscardconstexprnoexcept

Type name.

Returns
  Type name.

Definition at line 166 of file type_info.hpp.

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

- src/entt/core/type_info.hpp