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

#include <lazy-instance.h>

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

Public Types

using StorageType = char[sizeof(T)]
 
using AlignmentType = T
 

Static Public Member Functions

static TMutableInstance (StorageType *storage)
 
template<typename ConstructTrait >
static void InitStorageUsingTrait (StorageType *storage)
 

Detailed Description

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

Definition at line 96 of file lazy-instance.h.

Member Typedef Documentation

◆ AlignmentType

template<typename T >
using v8::base::StaticallyAllocatedInstanceTrait< T >::AlignmentType = T

Definition at line 98 of file lazy-instance.h.

◆ StorageType

template<typename T >
using v8::base::StaticallyAllocatedInstanceTrait< T >::StorageType = char[sizeof(T)]

Definition at line 97 of file lazy-instance.h.

Member Function Documentation

◆ InitStorageUsingTrait()

template<typename T >
template<typename ConstructTrait >
static void v8::base::StaticallyAllocatedInstanceTrait< T >::InitStorageUsingTrait ( StorageType * storage)
inlinestatic

Definition at line 105 of file lazy-instance.h.

◆ MutableInstance()

template<typename T >
static T * v8::base::StaticallyAllocatedInstanceTrait< T >::MutableInstance ( StorageType * storage)
inlinestatic

Definition at line 100 of file lazy-instance.h.


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