mrdocs::Optional<T&>
Optional reference wrapper that never owns storage.
Synopsis
Declared in <mrdocs/ADT/Optional.hpp>
template<class T>
class Optional<T&>;
Member Functions
Name |
Description |
|
Constructors |
Assignment operators |
|
Bind to a new referenced value. |
|
Check whether the optional holds a reference. |
|
Dereference the referenced object. |
|
Return pointer to the referenced object. |
|
Disengage the optional. |
|
Exchange the contained value with another Optional. |
|
|
|
Return true when the optional holds a reference. |
Static Member Functions
Name |
Description |
Return true because Optional<T&> never allocates storage. |
Description
Stores a pointer to an externally owned object; the disengaged state is nullptr.
Created with MrDocs