Flutter Engine
The Flutter Engine
Classes | Namespaces | Functions
checked_math.h File Reference
#include <cstddef>
#include <limits>
#include <type_traits>
#include "base/numerics/checked_math_impl.h"

Go to the source code of this file.

Classes

class  base::internal::CheckedNumeric< T >
 

Namespaces

namespace  base
 
namespace  base::internal
 

Functions

template<typename Dst , typename Src >
constexpr bool base::internal::IsValidForType (const CheckedNumeric< Src > value)
 
template<typename Dst , typename Src >
constexpr StrictNumeric< Dst > base::internal::ValueOrDieForType (const CheckedNumeric< Src > value)
 
template<typename Dst , typename Src , typename Default >
constexpr StrictNumeric< Dst > base::internal::ValueOrDefaultForType (const CheckedNumeric< Src > value, const Default default_value)
 
template<typename T >
constexpr CheckedNumeric< typename UnderlyingType< T >::typebase::internal::MakeCheckedNum (const T value)
 
template<template< typename, typename, typename > class M, typename L , typename R >
constexpr CheckedNumeric< typename MathWrapper< M, L, R >::typebase::internal::CheckMathOp (const L lhs, const R rhs)
 
template<template< typename, typename, typename > class M, typename L , typename R , typename... Args>
constexpr CheckedNumeric< typename ResultType< M, L, R, Args... >::typebase::internal::CheckMathOp (const L lhs, const R rhs, const Args... args)
 
template<typename L , typename R >
L * base::internal::operator+ (L *lhs, const StrictNumeric< R > rhs)
 
template<typename L , typename R >
L * base::internal::operator- (L *lhs, const StrictNumeric< R > rhs)