proxygen
folly::detail::constexpr_abs_helper< T, typename std::enable_if< std::is_integral< T >::value &&!std::is_same< T, bool >::value &&std::is_signed< T >::value >::type > Struct Template Reference

#include <ConstexprMath.h>

Static Public Member Functions

static constexpr std::make_unsigned< T >::type go (T t)
 

Detailed Description

template<typename T>
struct folly::detail::constexpr_abs_helper< T, typename std::enable_if< std::is_integral< T >::value &&!std::is_same< T, bool >::value &&std::is_signed< T >::value >::type >

Definition at line 123 of file ConstexprMath.h.

Member Function Documentation

template<typename T >
static constexpr std::make_unsigned<T>::type folly::detail::constexpr_abs_helper< T, typename std::enable_if< std::is_integral< T >::value &&!std::is_same< T, bool >::value &&std::is_signed< T >::value >::type >::go ( T  t)
inlinestatic

Definition at line 128 of file ConstexprMath.h.

References type.

128  {
129  return typename std::make_unsigned<T>::type(t < static_cast<T>(0) ? -t : t);
130  }
PskType type

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