webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Namespaces | Classes | Typedefs | Functions
base Namespace Reference

Namespaces

 internal
 

Classes

struct  SaturatedCastNaNBehaviorCheck
 
struct  SaturatedCastNaNBehaviorReturnZero
 
class  StrictNumeric
 
class  SysInfo
 

Typedefs

typedef StrictNumeric< size_tSizeT
 

Functions

template<typename Dst , typename Src >
constexpr bool IsValueInRangeForNumericType (Src value)
 
template<typename T >
constexpr std::enable_if< std::numeric_limits< T >::is_signed, bool >::type IsValueNegative (T value)
 
template<typename T >
constexpr std::enable_if<!std::numeric_limits< T >::is_signed, bool >::type IsValueNegative (T)
 
template<typename Dst , typename Src >
Dst checked_cast (Src value)
 
template<typename Dst , class NaNHandler = SaturatedCastNaNBehaviorReturnZero, typename Src >
constexpr Dst saturated_cast (Src value)
 
template<typename Dst , typename Src >
constexpr Dst strict_cast (Src value)
 

Typedef Documentation

◆ SizeT

Function Documentation

◆ checked_cast()

template<typename Dst , typename Src >
Dst base::checked_cast ( Src  value)
inline

◆ IsValueInRangeForNumericType()

template<typename Dst , typename Src >
constexpr bool base::IsValueInRangeForNumericType ( Src  value)

◆ IsValueNegative() [1/2]

template<typename T >
constexpr std::enable_if<std::numeric_limits<T>::is_signed, bool>::type base::IsValueNegative ( T  value)

◆ IsValueNegative() [2/2]

template<typename T >
constexpr std::enable_if<!std::numeric_limits<T>::is_signed, bool>::type base::IsValueNegative ( T  )

◆ saturated_cast()

template<typename Dst , class NaNHandler = SaturatedCastNaNBehaviorReturnZero, typename Src >
constexpr Dst base::saturated_cast ( Src  value)

◆ strict_cast()

template<typename Dst , typename Src >
constexpr Dst base::strict_cast ( Src  value)