v8 10.2.154 (node 18.16.0)
V8 is Google's open source JavaScript engine
Loading...
Searching...
No Matches
CopyablePersistentTraits< T > Struct Template Reference

#include <v8-persistent-handle.h>

Public Types

using CopyablePersistent = Persistent< T, CopyablePersistentTraits< T > >
 

Static Public Member Functions

template<class S , class M >
static V8_INLINE void Copy (const Persistent< S, M > &source, CopyablePersistent *dest)
 

Static Public Attributes

static const bool kResetInDestructor = true
 

Detailed Description

template<class T>
struct v8::CopyablePersistentTraits< T >

Helper class traits to allow copying and assignment of Persistent. This will clone the contents of storage cell, but not any of the flags, etc.

Definition at line 257 of file v8-persistent-handle.h.

Member Typedef Documentation

◆ CopyablePersistent

template<class T >
using CopyablePersistent = Persistent<T, CopyablePersistentTraits<T> >

Definition at line 258 of file v8-persistent-handle.h.

Member Function Documentation

◆ Copy()

template<class T >
template<class S , class M >
static V8_INLINE void Copy ( const Persistent< S, M > &  source,
CopyablePersistent dest 
)
inlinestatic

Definition at line 261 of file v8-persistent-handle.h.

Field Documentation

◆ kResetInDestructor

template<class T >
const bool kResetInDestructor = true
static

Definition at line 259 of file v8-persistent-handle.h.


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