Flutter Engine
The Flutter Engine
Classes | Functions
base::win::internal Namespace Reference

Classes

struct  VariantUtil
 
struct  VartypeToNativeType
 
struct  VartypeToNativeType< VT_BOOL >
 
struct  VartypeToNativeType< VT_BSTR >
 
struct  VartypeToNativeType< VT_DATE >
 
struct  VartypeToNativeType< VT_DISPATCH >
 
struct  VartypeToNativeType< VT_I1 >
 
struct  VartypeToNativeType< VT_I2 >
 
struct  VartypeToNativeType< VT_I4 >
 
struct  VartypeToNativeType< VT_I8 >
 
struct  VartypeToNativeType< VT_R4 >
 
struct  VartypeToNativeType< VT_R8 >
 
struct  VartypeToNativeType< VT_UI1 >
 
struct  VartypeToNativeType< VT_UI2 >
 
struct  VartypeToNativeType< VT_UI4 >
 
struct  VartypeToNativeType< VT_UI8 >
 
struct  VartypeToNativeType< VT_UNKNOWN >
 

Functions

constexpr bool VarTypeIsConvertibleTo (VARTYPE self, VARTYPE other)
 

Function Documentation

◆ VarTypeIsConvertibleTo()

constexpr bool base::win::internal::VarTypeIsConvertibleTo ( VARTYPE  self,
VARTYPE  other 
)
constexpr

Definition at line 18 of file variant_util.h.

18 {
19 // IDispatch inherits from IUnknown, so it's safe to
20 // upcast a VT_DISPATCH into an IUnknown*.
21 return (self == other) || (self == VT_DISPATCH && other == VT_UNKNOWN);
22}