ChessPlusPlus
WIP
cplusplus.com Community Project
|
#include <Utilities.hpp>
Public Types | |
using | type = typename std::conditional< std::is_floating_point< T >::value, std::common_type< T >, std::make_signed< T > >::type::type |
Better version of std::make_signed that supports floating point types, usage is identical.
T | must be scalar. |
using chesspp::util::MakeSigned< T >::type = typename std::conditional < std::is_floating_point<T>::value, std::common_type<T>, std::make_signed<T> >::type::type |
The signed variant of T, or T if T is floating point.