3#include <cgv/type/traits/max.h>
15 template <>
struct one_fct<float> {
static float get_value() {
return 1.0f; } };
16 template <>
struct one_fct<double> {
static double get_value() {
return 1.0; } };
the max traits defines for each type in the static const member value, what the maximum value is.
the one_fct traits provides a static function returning the value of a type that is interpreted as on...
the one traits defines for each type in the static const member value, what the value of one is.