ChessPlusPlus  WIP
cplusplus.com Community Project
chesspp::util::MakeSigned< T > Struct Template Reference

#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
 

Detailed Description

template<typename T>
struct chesspp::util::MakeSigned< T >

Better version of std::make_signed that supports floating point types, usage is identical.

Template Parameters
Tmust be scalar.

Member Typedef Documentation

template<typename T>
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.


The documentation for this struct was generated from the following file: