|
fennec
|
#include <fennec/math/detail/_vector_traits.h>Go to the source code of this file.
this header implements functions to test vector types at compile time
Classes | |
| struct | fennec::is_vector< T > |
check if T is a fennec::vector type More... | |
| struct | fennec::component_count< T > |
Get the number of Components in T, returns 1 for types that pass is_arithmetic<T>, returns vector::N for Vector Types, and returns 0 for all other cases. More... | |
| struct | fennec::total_component_count< Ts > |
Get the total number of Components among types in TypesT. More... | |
Variables | |
| template<typename T > | |
| constexpr bool | fennec::is_vector_v = is_vector<T>::value |
shorthand for is_vector<T>::value | |
| template<typename T > | |
| constexpr size_t | fennec::component_count_v = component_count<T>::value |
shorthand for component_count<T>::value | |
| template<typename... Ts> | |
| constexpr size_t | fennec::total_component_count_v = total_component_count<Ts...>::value |
shorthand for component_count<T>::value | |
|
constexpr |
| T | type to check |
|
constexpr |
| T | type to get the component count of |
|
constexpr |
| Ts | types to accumulate the count of |