v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::base::comparison_underlying_type< T > Struct Template Reference

#include <logging.h>

Collaboration diagram for v8::base::comparison_underlying_type< T >:

Public Types

enum  Dummy
 
using decay = typename std::decay<T>::type
 
using underlying
 
using type_or_bool
 
using type
 

Static Public Attributes

static constexpr bool is_enum = std::is_enum_v<decay>
 

Detailed Description

template<typename T>
struct v8::base::comparison_underlying_type< T >

Definition at line 336 of file logging.h.

Member Typedef Documentation

◆ decay

template<typename T >
using v8::base::comparison_underlying_type< T >::decay = typename std::decay<T>::type

Definition at line 340 of file logging.h.

◆ type

template<typename T >
using v8::base::comparison_underlying_type< T >::type
Initial value:
typename std::conditional<std::is_same_v<type_or_bool, bool>,
unsigned int, type_or_bool>::type
typename std::conditional< is_enum, underlying, decay >::type type_or_bool
Definition logging.h:344

Definition at line 346 of file logging.h.

◆ type_or_bool

template<typename T >
using v8::base::comparison_underlying_type< T >::type_or_bool
Initial value:
typename std::conditional<is_enum, underlying, decay>::type

Definition at line 344 of file logging.h.

◆ underlying

template<typename T >
using v8::base::comparison_underlying_type< T >::underlying
Initial value:
typename std::underlying_type<
typename std::conditional<is_enum, decay, Dummy>::type>::type

Definition at line 342 of file logging.h.

Member Enumeration Documentation

◆ Dummy

Definition at line 339 of file logging.h.

Member Data Documentation

◆ is_enum

template<typename T >
bool v8::base::comparison_underlying_type< T >::is_enum = std::is_enum_v<decay>
staticconstexpr

Definition at line 341 of file logging.h.


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