v8  9.4.146 (node 16.13.0)
V8 is Google's open source JavaScript engine
EphemeronPair< K, V > Struct Template Reference

#include <ephemeron-pair.h>

Collaboration diagram for EphemeronPair< K, V >:

Public Member Functions

 EphemeronPair (K *k, V *v)
 
void ClearValueIfKeyIsDead (const LivenessBroker &broker)
 

Data Fields

WeakMember< K > key
 
Member< Vvalue
 

Detailed Description

template<typename K, typename V>
struct cppgc::EphemeronPair< K, V >

An ephemeron pair is used to conditionally retain an object. The value will be kept alive only if the key is alive.

Definition at line 18 of file ephemeron-pair.h.

Constructor & Destructor Documentation

◆ EphemeronPair()

EphemeronPair ( K *  k,
V v 
)
inline

Definition at line 19 of file ephemeron-pair.h.

References EphemeronPair< K, V >::key, and EphemeronPair< K, V >::value.

Member Function Documentation

◆ ClearValueIfKeyIsDead()

void ClearValueIfKeyIsDead ( const LivenessBroker broker)
inline

Definition at line 23 of file ephemeron-pair.h.

References EphemeronPair< K, V >::key, and EphemeronPair< K, V >::value.

Field Documentation

◆ key

◆ value


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