folly::to_unsigned

Converts the argument to the corresponding unsigned type.

Synopsis

Declared in <folly/Utility.h>

template<
    typename...,
    typename T>
constexpr
std::make_unsigned<T>::type
to_unsigned(T const& t) noexcept;

NOTE

This function is defined as an Algorithm Function Object (AFO).

Return Value

The value as its unsigned counterpart.

Parameters

NameDescription
tThe value to convert.