v8 14.1.146 (node 25.0.0)
V8 is Google's open source JavaScript engine
Loading...
Searching...
No Matches
MakeGarbageCollectedTrait< T > Class Template Reference

#include <allocation.h>

Inheritance diagram for MakeGarbageCollectedTrait< T >:
Collaboration diagram for MakeGarbageCollectedTrait< T >:

Static Public Member Functions

template<typename... Args>
static TCall (AllocationHandle &handle, Args &&... args)
 
template<typename... Args>
static TCall (AllocationHandle &handle, AdditionalBytes additional_bytes, Args &&... args)
 

Additional Inherited Members

- Static Protected Member Functions inherited from MakeGarbageCollectedTraitBase< T >
static V8_INLINE voidAllocate (AllocationHandle &handle, size_t size)
 
static V8_INLINE void MarkObjectAsFullyConstructed (const void *payload)
 

Detailed Description

template<typename T>
class cppgc::MakeGarbageCollectedTrait< T >

Default trait class that specifies how to construct an object of type T. Advanced users may override how an object is constructed using the utilities that are provided through MakeGarbageCollectedTraitBase.

Any trait overriding construction must

Definition at line 234 of file allocation.h.

Member Function Documentation

◆ Call() [1/2]

template<typename T >
template<typename... Args>
static T * Call ( AllocationHandle handle,
AdditionalBytes  additional_bytes,
Args &&...  args 
)
inlinestatic

Definition at line 246 of file allocation.h.

◆ Call() [2/2]

template<typename T >
template<typename... Args>
static T * Call ( AllocationHandle handle,
Args &&...  args 
)
inlinestatic

Definition at line 237 of file allocation.h.


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