Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Types | Static Public Member Functions | List of all members
base::internal::CheckedMaxOp< 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 MaxExponentPromotion< 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::CheckedMaxOp< T, U, typename std::enable_if< std::is_arithmetic< T >::value &&std::is_arithmetic< U >::value >::type >

Definition at line 391 of file checked_math_impl.h.

Member Typedef Documentation

◆ result_type

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

Definition at line 396 of file checked_math_impl.h.

Member Function Documentation

◆ Do()

template<typename T , typename U >
template<typename V >
static constexpr bool base::internal::CheckedMaxOp< 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 398 of file checked_math_impl.h.

398 {
399 result_type tmp = IsGreater<T, U>::Test(x, y) ? static_cast<result_type>(x)
400 : static_cast<result_type>(y);
401 *result = static_cast<V>(tmp);
402 return IsValueInRangeForNumericType<V>(tmp);
403 }
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: