Struct component_traits

Synopsis

#include <src/entt/entity/component.hpp>

template<typename Type, typename = void>
struct component_traits: basic_component_traits

Description

Common way to access various properties of components.

Template Parameters

Type - Type of component.

Mentioned in

Inheritance

Ancestors: basic_component_traits

Source

Lines 25-28 in src/entt/entity/component.hpp.

template<typename Type, typename = void>
struct component_traits: basic_component_traits {
    static_assert(std::is_same_v<std::decay_t<Type>, Type>, "Unsupported type");
};





Add Discussion

Log in to comment