Skip to content
Flecs v4.1
flecs::on_instantiate_trait< T, typename > Struct Template Reference

Trait that assigns an OnInstantiate policy to a component at compile time. More...

#include <utils.hpp>

Static Public Attributes

static constexpr bool declared = false
static constexpr flecs::on_instantiate value

Detailed Description

template<typename T, typename = void>
struct flecs::on_instantiate_trait< T, typename >

Trait that assigns an OnInstantiate policy to a component at compile time.

Enable by adding a static constexpr auto on_instantiate member set to a flecs::on_instantiate value, or by specializing the trait.

Definition at line 204 of file utils.hpp.

Member Data Documentation

◆ declared

template<typename T, typename = void>
bool flecs::on_instantiate_trait< T, typename >::declared = false
staticconstexpr

Definition at line 205 of file utils.hpp.

◆ value

template<typename T, typename = void>
flecs::on_instantiate flecs::on_instantiate_trait< T, typename >::value
staticconstexpr
Initial value:
=
flecs::on_instantiate::override

Definition at line 206 of file utils.hpp.


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