EnTT 3.14.0
Loading...
Searching...
No Matches
Public Types | Static Public Member Functions | List of all members
entt::poly_vtable< Concept, Len, Align > Class Template Reference

Static virtual table factory. More...

#include <poly.hpp>

Public Types

using type = std::conditional_t<is_mono_v, std::tuple_element_t<0u, vtable_type>, const vtable_type *>
 Virtual table type.
 

Static Public Member Functions

template<typename Type >
static type instance () noexcept
 Returns a static virtual table for a specific concept and type.
 

Detailed Description

template<typename Concept, std::size_t Len, std::size_t Align>
class entt::poly_vtable< Concept, Len, Align >

Static virtual table factory.

Template Parameters
ConceptConcept descriptor.
LenSize of the storage reserved for the small buffer optimization.
AlignAlignment requirement.

Definition at line 47 of file poly.hpp.

Member Typedef Documentation

◆ type

template<typename Concept , std::size_t Len, std::size_t Align>
using entt::poly_vtable< Concept, Len, Align >::type = std::conditional_t<is_mono_v, std::tuple_element_t<0u, vtable_type>, const vtable_type *>

Virtual table type.

Definition at line 104 of file poly.hpp.

Member Function Documentation

◆ instance()

template<typename Concept , std::size_t Len, std::size_t Align>
template<typename Type >
static type entt::poly_vtable< Concept, Len, Align >::instance ( )
inlinestaticnoexcept

Returns a static virtual table for a specific concept and type.

Template Parameters
TypeThe type for which to generate the virtual table.
Returns
A static virtual table for the given concept and type.

Definition at line 112 of file poly.hpp.


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