neuray API Programmer's Manual

mi::base::numeric_traits< T> Template Struct Reference

template< typename T>

mi::base::numeric_traits< T>

Description

Helper class to deduce properties of numeric types defined in this API. This class can be used in generic code to deduce the limits and special values, such as a signaling NaN, for number types defined in this API, such as mi::Uint32 and mi::Float64.

The default template defines all members, see mi::base::numeric_traits_base, but with default constructed or false values. It requires that a value of T can be default constructed.

This traits class is similar to std::numeric_limits<T>, and in case of overlap behaves in the same way.