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

std::reference_wrapper -like class for pointers to objects. More...

Public Member Functions

template<typename U >
constexpr pointer_wrapper (U *ptr) noexcept
 
constexpr pointer_wrapper (std::nullptr_t) noexcept
 
constexpr pointer_wrapper (pointer_wrapper const &) noexcept=default
 
template<typename U >
constexpr pointer_wrapper (object_pointer_wrapper< U > const &other) noexcept
 
template<typename U >
constexpr pointer_wrapper (p_object_pointer_wrapper< U > const &other) noexcept
 
constexpr pointer_wrapper (pointer_wrapper &&) noexcept=default
 
template<typename U >
 pointer_wrapper (object_pointer_wrapper< U > &&other) noexcept
 
template<typename U >
 pointer_wrapper (p_object_pointer_wrapper< U > &&other) noexcept
 
template<typename U >
pointer_wrapperoperator= (U *ptr) noexcept
 
pointer_wrapperoperator= (std::nullptr_t) noexcept
 
pointer_wrapperoperator= (pointer_wrapper const &) noexcept=default
 
template<typename U >
pointer_wrapperoperator= (object_pointer_wrapper< U > const &other) noexcept
 
template<typename U >
pointer_wrapperoperator= (p_object_pointer_wrapper< U > const &other) noexcept
 
pointer_wrapperoperator= (pointer_wrapper &&) noexcept=default
 
template<typename U >
pointer_wrapperoperator= (object_pointer_wrapper< U > &&other) noexcept
 
template<typename U >
pointer_wrapperoperator= (p_object_pointer_wrapper< U > &&other) noexcept
 
void swap (pointer_wrapper &other) noexcept
 
T * get (void) const noexcept
 
 operator T* (void) const noexcept
 
T & operator* (void) const noexcept
 
T * operator-> (void) const noexcept
 
 operator bool (void) const noexcept
 

Public Types

using type = T
 

Friends

template<typename , bool >
class pointer_wrapper
 

Related Functions

(Note that these are not member functions.)

template<typename T >
T * get_pointer (pointer_wrapper< T > const &r)
 Returns a pointer to the object through pointer_wrapper. More...
 
template<typename T >
pointer_wrapper< T > pointer (T *const t)
 Helper functions that creates an object of type pointer_wrapper.
 
template<typename T >
pointer_wrapper< const T > cpointer (T *const t)
 Helper function that creates an object of type pointer_wrapper.
 

Detailed Description

template<typename T, bool = is_p_object<T>::value>
class stapl::pointer_wrapper< T, bool >

std::reference_wrapper -like class for pointers to objects.


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