CNL  2.0.2 (development)
Compositional Numeric Library
cnl::rep_of< T > Struct Template Reference

meta-function object that returns the Rep type of a component More...

#include <rep_of.h>

Detailed Description

template<typename T>
struct cnl::rep_of< T >

meta-function object that returns the Rep type of a component

Template Parameters
Tcomponent whose representational type to return
Note
The representational or 'Rep' type of a numeric component is central to CNL's method of encapsulation and abstraction. Typically, this is the type of the member variable in many of the numeric types. Many of the properties of a component – such as precision, range and signedness – will be established by the Rep type.
See also
to_rep, from_value, tag_of, set_rep