v8 10.2.154 (node 18.16.0)
V8 is Google's open source JavaScript engine
Loading...
Searching...
No Matches
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()

template<typename K , typename V >
EphemeronPair ( K *  k,
V v 
)
inline

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

Member Function Documentation

◆ ClearValueIfKeyIsDead()

template<typename K , typename V >
void ClearValueIfKeyIsDead ( const LivenessBroker broker)
inline

Field Documentation

◆ key

template<typename K , typename V >
WeakMember<K> key

◆ value

template<typename K , typename V >
Member<V> value

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