Stores a reference to an object. More...
#include <rw/tools/refwrap.h>
Public Member Functions | |
RWTReferenceWrapper (T &ref) | |
RWTReferenceWrapper (const RWTReferenceWrapper &rhs) | |
operator T & () const | |
RWTReferenceWrapper & | operator= (const RWTReferenceWrapper &rhs) |
Related Functions | |
(Note that these are not member functions.) | |
template<typename T > | |
RWTReferenceWrapper< const T > | rwCRef (const T &ref) |
template<typename T > | |
RWTReferenceWrapper< T > | rwRef (T &ref) |
RWTReferenceWrapper stores a reference to an object.
|
inline |
Constructs a reference wrapper for the object referenced by ref
|
inline |
Constructs a reference wrapper for the object referenced by rhs.
|
inline |
Conversion operator.
|
inline |
Assignment operator. Self will reference the same instance as rhs.
|
related |
Constructs an RWTReferenceWrapper for ref.
|
related |
Constructs an RWTReferenceWrapper for ref.
Copyright © 2021 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved. |