plugify
1.0.0.0
|
A lightweight reference wrapper for objects of type T
.
More...
#include <reference_wrapper.hpp>
Public Member Functions | |
Ref (T &impl) noexcept | |
Ref (Ref const &)=default | |
Ref (Ref &&)=default | |
bool | operator== (const Ref &other) const noexcept |
bool | operator== (const T *impl) const noexcept |
Ref & | operator= (const Ref &) &=default |
Ref & | operator= (const Ref &) &&=delete |
Ref & | operator= (Ref &&) &=default |
Ref & | operator= (Ref &&) &&=delete |
operator bool () const noexcept | |
Protected Attributes | |
T * | _impl |
A lightweight reference wrapper for objects of type T
.
This template class provides a reference-like wrapper around an object of type T
, ensuring the object can be safely referenced and compared. It handles copying and moving references, while maintaining a non-owning pointer to the wrapped object.
T | The type of the object to be referenced. |
Definition at line 17 of file reference_wrapper.hpp.