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

#include <checked_math_impl.h>

Public Types

using result_type = T
 

Static Public Member Functions

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

Detailed Description

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

Definition at line 310 of file checked_math_impl.h.

Member Typedef Documentation

◆ result_type

template<typename T , typename U >
using base::internal::CheckedRshOp< T, U, typename std::enable_if< std::is_integral< T >::value &&std::is_integral< U >::value >::type >::result_type = T

Definition at line 314 of file checked_math_impl.h.

Member Function Documentation

◆ Do()

template<typename T , typename U >
template<typename V >
static bool base::internal::CheckedRshOp< T, U, typename std::enable_if< std::is_integral< T >::value &&std::is_integral< U >::value >::type >::Do ( T  x,
shift,
V result 
)
inlinestatic

Definition at line 316 of file checked_math_impl.h.

316 {
317 // Use the type conversion push negative values out of range.
320 T tmp = x >> shift;
321 *result = static_cast<V>(tmp);
322 return IsValueInRangeForNumericType<V>(tmp);
323 }
324 return false;
325 }
GAsyncResult * result
T __attribute__((ext_vector_type(N))) V
double x
constexpr std::make_unsigned< typenamebase::internal::UnderlyingType< Src >::type >::type as_unsigned(const Src value)
#define T
#define BASE_NUMERICS_LIKELY(x)

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