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_wrapper & | operator= (U *ptr) noexcept |
pointer_wrapper & | operator= (std::nullptr_t) noexcept |
pointer_wrapper & | operator= (pointer_wrapper const &) noexcept=default |
template<typename U > | |
pointer_wrapper & | operator= (object_pointer_wrapper< U > const &other) noexcept |
template<typename U > | |
pointer_wrapper & | operator= (p_object_pointer_wrapper< U > const &other) noexcept |
pointer_wrapper & | operator= (pointer_wrapper &&) noexcept=default |
template<typename U > | |
pointer_wrapper & | operator= (object_pointer_wrapper< U > &&other) noexcept |
template<typename U > | |
pointer_wrapper & | operator= (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. | |
std::reference_wrapper
-like class for pointers to objects.