STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions | Public Types | Related Functions
stapl::lazy_reference_wrapper< T > Class Template Reference

std::reference_wrapper -like class for distributed objects. More...

Public Member Functions

 lazy_reference_wrapper (T &t) noexcept
 
 lazy_reference_wrapper (T &&)=delete
 
T & get (void) const noexcept
 Returns a reference to the object. More...
 
 operator T & (void) const noexcept
 

Public Types

using type = T
 

Related Functions

(Note that these are not member functions.)

template<typename T >
T * get_pointer (lazy_reference_wrapper< T > const &r)
 Returns a pointer to the distributed object referenced by r. More...
 
template<typename T >
std::conditional< is_p_object< T >::value, lazy_reference_wrapper< T >, std::reference_wrapper< T > >::type lazy_ref (T &t)
 Helper functions that creates an object of type lazy_reference_wrapper if T is a distributed object, otherwise an object of type std::reference_wrapper.
 
template<typename T >
std::conditional< is_p_object< T >::value, lazy_reference_wrapper< const T >, std::reference_wrapper< const T > >::type lazy_cref (T const &t)
 Helper function that creates an object of type lazy_reference_wrapper if T is a distributed object, otherwise an object of type std::reference_wrapper.
 

Detailed Description

template<typename T>
class stapl::lazy_reference_wrapper< T >

std::reference_wrapper -like class for distributed objects.

This reference wrapper will only try to retrieve the distributed object when the lazy_reference_wrapper::get() or the implicit conversion operator to T are called.

Member Function Documentation

◆ get()

template<typename T >
T& stapl::lazy_reference_wrapper< T >::get ( void  ) const
noexcept

Returns a reference to the object.


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