#include <NumericConv.h>
Static Public Member Functions | |
| static TTrg | clamped (const TSrc &src) |
Template to cast from a source numeric to a destination type
| TTrg | cast target type |
| TSrc | cast source type |
Definition at line 94 of file NumericConv.h.
|
inlinestatic |
Cast from source to target type values outside the destination types range will be clamped to lie within the target types value range.
| [in] | src | value to be casted |
Definition at line 101 of file NumericConv.h.