![]() |
Gamedev Framework (gf)
0.14.0
A C++14 framework for 2D games
|
A reference wrapper. More...
#include <gf/Ref.h>
Public Member Functions | |
Ref (T &ref) noexcept | |
Constructor with a lvalue reference. More... | |
Ref (T &&)=delete | |
Deleted constructor with rvalue reference. More... | |
Ref (const Ref &other) noexcept=default | |
Copy constructor. More... | |
Ref & | operator= (const Ref &other) noexcept=default |
Copy assignment. More... | |
T & | get () const noexcept |
Get the reference. More... | |
operator T & () const noexcept | |
Conversion to a reference. More... | |
Related Functions | |
(Note that these are not member functions.) | |
template<typename T > | |
constexpr bool | operator== (Ref< T > lhs, Ref< T > rhs) noexcept |
Referece comparison. More... | |
template<typename T > | |
constexpr bool | operator== (Ref< T > lhs, const T &rhs) noexcept |
Referece comparison. More... | |
template<typename T > | |
constexpr bool | operator== (const T &lhs, Ref< T > rhs) noexcept |
Referece comparison. More... | |
A reference wrapper.
This class is similar to std::reference_wrapper.
Constructor with a lvalue reference.
ref | A reference |
Get the reference.
Conversion to a reference.
Copy assignment.
Referece comparison.
The reference are compared by address, not by value.
Referece comparison.
The reference are compared by address, not by value.