Generic get function. Fails to compile for non floating_point values and returns the reference for a floating point value.
More...
#include <type_operators.hpp>
Public Member Functions |
| static_assert (dim > 0,"Dimension less than one passed to getter") |
| static_assert (std::is_floating_point< T >::value,"Non floating-point type used with standard getter") |
Static Public Member Functions |
static T & | pull (T &inval) |
Detailed Description
template<class T, int dim>
struct get< T, dim >
Generic get function. Fails to compile for non floating_point values and returns the reference for a floating point value.
Definition at line 34 of file type_operators.hpp.
Member Function Documentation
template<class T , int dim>
static T& get< T, dim >::pull |
( |
T & |
inval | ) |
|
|
inlinestatic |
template<class T , int dim>
get< T, dim >::static_assert |
( |
dim |
, |
|
|
0 |
, |
|
|
"Dimension less than one passed to getter" |
|
|
) |
| |
template<class T , int dim>
get< T, dim >::static_assert |
( |
std::is_floating_point< T >::value |
, |
|
|
"Non floating-point type used with standard getter" |
|
|
) |
| |
The documentation for this struct was generated from the following file: