The std::make_signed template of C++ STL is present in the <type_traits> header file. The std::make_signed template of C++ STL is used to get the signed type corresponding to T(Triat class), by keeping any cv-qualifiers. It can be checked using std::is_same::value function whether the given type T is signed type or not.
template< class T > struct make_signed; template<class T> using make_signed_t = typename make_signed<T>::type;
Parameter: The template std::make_signed accepts a single parameter T(Trait class) and maked the type T as a signed type.
Below is the program to demonstrate std::make_signed in C++:
A is signed type? true B is signed type? true C is signed type? false D is signed type? true E is signed type? false