Converts the argument to the corresponding signed type.

Synopsis

Declared in <folly/Utility.h>

template<
    typename...,
    typename T>
constexpr
std::make_signed<T>::type
to_signed(T const& t) noexcept;
Note

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

Return Value

The value as its signed counterpart.

Parameters

Name

Description

t

The value to convert.

Created with MrDocs