Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Types | Static Public Member Functions | List of all members
base::internal::CheckedMinOp< T, U, typename std::enable_if< std::is_arithmetic< T >::value &&std::is_arithmetic< U >::value >::type > Struct Template Reference

#include <checked_math_impl.h>

Public Types

using result_type = typename LowestValuePromotion< T, U >::type
 

Static Public Member Functions

template<typename V >
static constexpr bool Do (T x, U y, V *result)
 

Detailed Description

template<typename T, typename U>
struct base::internal::CheckedMinOp< T, U, typename std::enable_if< std::is_arithmetic< T >::value &&std::is_arithmetic< U >::value >::type >

Definition at line 412 of file checked_math_impl.h.

Member Typedef Documentation

◆ result_type

template<typename T , typename U >
using base::internal::CheckedMinOp< T, U, typename std::enable_if< std::is_arithmetic< T >::value &&std::is_arithmetic< U >::value >::type >::result_type = typename LowestValuePromotion<T, U>::type

Definition at line 417 of file checked_math_impl.h.

Member Function Documentation

◆ Do()

template<typename T , typename U >
template<typename V >
static constexpr bool base::internal::CheckedMinOp< T, U, typename std::enable_if< std::is_arithmetic< T >::value &&std::is_arithmetic< U >::value >::type >::Do ( T  x,
y,
V result 
)
inlinestaticconstexpr

Definition at line 419 of file checked_math_impl.h.

419 {
420 result_type tmp = IsLess<T, U>::Test(x, y) ? static_cast<result_type>(x)
421 : static_cast<result_type>(y);
422 *result = static_cast<V>(tmp);
423 return IsValueInRangeForNumericType<V>(tmp);
424 }
GAsyncResult * result
T __attribute__((ext_vector_type(N))) V
double y
double x
static constexpr bool Test(const L lhs, const R rhs)

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