proxygen
folly::detail::constexpr_abs_helper< T, typename std::enable_if< std::is_floating_point< T >::value >::type > Struct Template Reference

#include <ConstexprMath.h>

Static Public Member Functions

static constexpr T go (T t)
 

Detailed Description

template<typename T>
struct folly::detail::constexpr_abs_helper< T, typename std::enable_if< std::is_floating_point< T >::value >::type >

Definition at line 103 of file ConstexprMath.h.

Member Function Documentation

template<typename T >
static constexpr T folly::detail::constexpr_abs_helper< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::go ( T  t)
inlinestatic

Definition at line 106 of file ConstexprMath.h.

106  {
107  return t < static_cast<T>(0) ? -t : t;
108  }

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