fennec
Loading...
Searching...
No Matches
vector_traits.h File Reference
#include <fennec/math/detail/_vector_traits.h>

Go to the source code of this file.

Detailed Description

this header implements functions to test vector types at compile time

Author
Medusa Slockbower

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
 

Variable Documentation

◆ is_vector_v

template<typename T >
constexpr bool fennec::is_vector_v = is_vector<T>::value
constexpr
Template Parameters
Ttype to check

◆ component_count_v

template<typename T >
constexpr size_t fennec::component_count_v = component_count<T>::value
constexpr
Template Parameters
Ttype to get the component count of

◆ total_component_count_v

template<typename... Ts>
constexpr size_t fennec::total_component_count_v = total_component_count<Ts...>::value
constexpr
Template Parameters
Tstypes to accumulate the count of