OGLplus  (0.59.0) a C++ wrapper for rendering APIs

entity_traits.hpp
Go to the documentation of this file.
1 #ifndef EAGINE_ECS_ENTITY_TRAITS_HPP
9 #define EAGINE_ECS_ENTITY_TRAITS_HPP
10 
11 namespace eagine::ecs {
12 
13 template <typename Entity>
14 struct entity_traits {
15  using parameter_type = Entity;
16 
17  static auto minimum() noexcept -> Entity {
18  return Entity();
19  }
20 };
21 
22 template <typename Entity>
23 using entity_param_t = typename entity_traits<Entity>::parameter_type;
24 
25 } // namespace eagine::ecs
26 
27 #endif // EAGINE_ECS_ENTITY_TRAITS_HPP
static constexpr auto minimum(T a, T b) noexcept
Returns the minimum value of a and b.
Definition: functions.hpp:47

Copyright © 2015-2021 Matúš Chochlík.
<chochlik -at -gmail.com>
Documentation generated on Tue Apr 13 2021 by Doxygen (version 1.8.17).