Simple-Vector v1.3.0
TypeTraits

Classes

struct  sl::vec::vector_traits< T >
 Uniform interface to Vector types. More...
 
struct  sl::vec::is_vectorial< T >
 Checks whether T is a vector type. More...
 
struct  sl::vec::vector_traits< Vector< T, VDimensions > >
 Specialization for Vector. More...
 
struct  sl::vec::is_vectorial< Vector< T, VDimensions > >
 Specialization for Vector which registers Vector with all its template variations as vectorial. More...
 

Typedefs

template<class T >
using sl::vec::vector_value_t = typename vector_traits< std::remove_cvref_t< T > >::value_type
 Convenience alias type to the value_type of Vectors. More...
 

Variables

template<class T >
constexpr auto sl::vec::vector_dims_v = vector_traits<std::remove_cvref_t<T>>::dimensions
 Convenience constant to the dimensions of Vectors. More...
 
template<class T >
constexpr bool sl::vec::is_vectorial_v = is_vectorial<T>::value
 Shortcut checking for vectorial classes. More...
 

Detailed Description

Typedef Documentation

◆ vector_value_t

template<class T >
using sl::vec::vector_value_t = typedef typename vector_traits<std::remove_cvref_t<T> >::value_type

Convenience alias type to the value_type of Vectors.

Template Parameters
Ttype of interest

Variable Documentation

◆ is_vectorial_v

template<class T >
constexpr bool sl::vec::is_vectorial_v = is_vectorial<T>::value
constexpr

Shortcut checking for vectorial classes.

Template Parameters
TA type to check

◆ vector_dims_v

template<class T >
constexpr auto sl::vec::vector_dims_v = vector_traits<std::remove_cvref_t<T>>::dimensions
constexpr

Convenience constant to the dimensions of Vectors.

Template Parameters
Ttype of interest