tts v2.3.0
The Tiny Test System
 
Loading...
Searching...
No Matches

◆ as_value()

template<typename T , typename V >
auto tts::as_value ( V const &  v)

Single evaluation of value extension point.

This function generate a T from a value v. Default behavior is to convert but this function can be overloaded to handle suer-defined type.

Template Parameters
TTarget data type
Parameters
vValue used ot generate the data sample
Returns
A value of type T obtained by conversion of v.