Flutter Engine
The Flutter Engine
|
#include <cstdint>
#include <limits>
#include <type_traits>
Go to the source code of this file.
Namespaces | |
namespace | base |
namespace | base::internal |
Macros | |
#define | BASE_NUMERICS_LIKELY(x) (x) |
#define | BASE_NUMERICS_UNLIKELY(x) (x) |
#define | INTEGER_FOR_DIGITS_AND_SIGN(I) |
Functions | |
template<typename T , typename std::enable_if< std::is_signed< T >::value >::type * = nullptr> | |
constexpr bool | base::internal::IsValueNegative (T value) |
template<typename T > | |
constexpr std::make_signed< T >::type | base::internal::ConditionalNegate (T x, bool is_negative) |
template<typename T > | |
constexpr std::make_unsigned< T >::type | base::internal::SafeUnsignedAbs (T value) |
constexpr bool | base::internal::CanDetectCompileTimeConstant () |
template<typename T > | |
constexpr bool | base::internal::IsCompileTimeConstant (const T) |
template<typename T > | |
constexpr bool | base::internal::MustTreatAsConstexpr (const T v) |
template<typename Dst , template< typename > class Bounds = std::numeric_limits, typename Src > | |
constexpr RangeCheck | base::internal::DstRangeRelationToSrcRange (Src value) |
base::internal::INTEGER_FOR_DIGITS_AND_SIGN (int8_t) | |
base::internal::INTEGER_FOR_DIGITS_AND_SIGN (uint8_t) | |
base::internal::INTEGER_FOR_DIGITS_AND_SIGN (int16_t) | |
base::internal::INTEGER_FOR_DIGITS_AND_SIGN (uint16_t) | |
base::internal::INTEGER_FOR_DIGITS_AND_SIGN (int32_t) | |
base::internal::INTEGER_FOR_DIGITS_AND_SIGN (uint32_t) | |
base::internal::INTEGER_FOR_DIGITS_AND_SIGN (int64_t) | |
base::internal::INTEGER_FOR_DIGITS_AND_SIGN (uint64_t) | |
template<typename Src > | |
constexpr std::make_signed< typenamebase::internal::UnderlyingType< Src >::type >::type | base::internal::as_signed (const Src value) |
template<typename Src > | |
constexpr std::make_unsigned< typenamebase::internal::UnderlyingType< Src >::type >::type | base::internal::as_unsigned (const Src value) |
template<typename L , typename R > | |
constexpr bool | base::internal::IsLessImpl (const L lhs, const R rhs, const RangeCheck l_range, const RangeCheck r_range) |
template<typename L , typename R > | |
constexpr bool | base::internal::IsLessOrEqualImpl (const L lhs, const R rhs, const RangeCheck l_range, const RangeCheck r_range) |
template<typename L , typename R > | |
constexpr bool | base::internal::IsGreaterImpl (const L lhs, const R rhs, const RangeCheck l_range, const RangeCheck r_range) |
template<typename L , typename R > | |
constexpr bool | base::internal::IsGreaterOrEqualImpl (const L lhs, const R rhs, const RangeCheck l_range, const RangeCheck r_range) |
template<template< typename, typename > class C, typename L , typename R > | |
constexpr bool | base::internal::SafeCompare (const L lhs, const R rhs) |
template<typename Dst , typename Src > | |
constexpr bool | base::internal::IsMaxInRangeForNumericType () |
template<typename Dst , typename Src > | |
constexpr bool | base::internal::IsMinInRangeForNumericType () |
template<typename Dst , typename Src > | |
constexpr Dst | base::internal::CommonMax () |
template<typename Dst , typename Src > | |
constexpr Dst | base::internal::CommonMin () |
template<typename Dst , typename Src = Dst> | |
constexpr Dst | base::internal::CommonMaxOrMin (bool is_min) |
Definition at line 16 of file safe_conversions_impl.h.
Definition at line 17 of file safe_conversions_impl.h.
#define INTEGER_FOR_DIGITS_AND_SIGN | ( | I | ) |
Definition at line 413 of file safe_conversions_impl.h.