v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
runtime-support.h File Reference
#include <type_traits>
Include dependency graph for runtime-support.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Identity< T >
 
struct  UnderlyingTypeHelper< T >
 

Typedefs

template<class T >
using UnderlyingTypeIfEnum
 

Functions

template<class T >
UnderlyingTypeIfEnum< TCastToUnderlyingTypeIfEnum (T x)
 

Typedef Documentation

◆ UnderlyingTypeIfEnum

template<class T >
using UnderlyingTypeIfEnum
Initial value:
typename std::conditional_t<std::is_enum<T>::value, UnderlyingTypeHelper<T>,
Identity<T>>::type

Definition at line 20 of file runtime-support.h.

Function Documentation

◆ CastToUnderlyingTypeIfEnum()

template<class T >
UnderlyingTypeIfEnum< T > CastToUnderlyingTypeIfEnum ( T x)

Definition at line 27 of file runtime-support.h.