halcheck 1.0
Loading...
Searching...
No Matches

◆ to_unsigned()

template<typename T >
lib::make_unsigned_t< T > halcheck::lib::to_unsigned ( T value)

Converts an integral value into its equivalent unsigned version.

Template Parameters
TThe integral type to convert from.
Parameters
valueThe value to convert.
Returns
If T is an unsigned type, then returns value. Otherwise, returns the result of casting value to a signed type.