PrevUpHomeNext

utx::max_v, utx::min_v, utx::inf_v


utx::max_v

utx::max_v - gets the maxium value of specific real type.

utx::max_v can be applied to integral or floating point types.

template <utx::real_meric type1>
constexpr inline type1 max_v = utx::max_v_impl<type1>::value;

utx::min_v

utx::min_v - gets the minimum value of specific type.

utx::min_v can be applied to integral or floating point types.

template <utx::real_meric type1>
constexpr inline type1 min_v = utx::min_v_impl<type1>::value;

utx::inf_v

utx::inf_v - gets the infinite of specific floating type.

utx::inf_v can only be applied to floating point types.

template <utx::floating_meric type1>
constexpr inline type1 inf_v = utx::inf_v_impl<type1>::value;

c++ example

#include <utxcpp/core.hpp>

int main()
{
	utx::print(
		utx::max_v<utx::u16>,
		utx::min_v<utx::u16>
	);

	utx::print(
		utx::max_v<utx::f32>,
		utx::min_v<utx::f32>,
		utx::inf_v<utx::f32>
	);
}

See Also

utx::meric_static_cast


PrevUpHomeNext

E

U