Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
cppgc::EphemeronPair< K, V > Struct Template Reference

#include <ephemeron-pair.h>

Collaboration diagram for cppgc::EphemeronPair< K, V >:
[legend]

Public Member Functions

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

Public Attributes

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.

Constructor & Destructor Documentation

◆ EphemeronPair()

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

Member Function Documentation

◆ ClearValueIfKeyIsDead()

template<typename K , typename V >
void cppgc::EphemeronPair< K, V >::ClearValueIfKeyIsDead ( const LivenessBroker broker)
inline
Here is the call graph for this function:

Member Data Documentation

◆ key

template<typename K , typename V >
WeakMember<K> cppgc::EphemeronPair< K, V >::key

◆ value

template<typename K , typename V >
Member<V> cppgc::EphemeronPair< K, V >::value

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