xrpld
Loading...
Searching...
No Matches
xrpl::LocalValue< T > Class Template Reference

#include <LocalValue.h>

Collaboration diagram for xrpl::LocalValue< T >:

Public Member Functions

template<class... Args>
 LocalValue (Args &&... args)
T & operator* ()
 Stores instance of T specific to the calling coroutine or thread.
T * operator-> ()
 Stores instance of T specific to the calling coroutine or thread.

Private Attributes

t_

Detailed Description

template<class T>
class xrpl::LocalValue< T >

Definition at line 65 of file LocalValue.h.

Constructor & Destructor Documentation

◆ LocalValue()

template<class T>
template<class... Args>
xrpl::LocalValue< T >::LocalValue ( Args &&... args)

Definition at line 69 of file LocalValue.h.

Member Function Documentation

◆ operator*()

template<class T>
T & xrpl::LocalValue< T >::operator* ( )

Stores instance of T specific to the calling coroutine or thread.

Definition at line 90 of file LocalValue.h.

◆ operator->()

template<class T>
T * xrpl::LocalValue< T >::operator-> ( )

Stores instance of T specific to the calling coroutine or thread.

Definition at line 79 of file LocalValue.h.

Member Data Documentation

◆ t_

template<class T>
T xrpl::LocalValue< T >::t_
private

Definition at line 85 of file LocalValue.h.