An optional reference to an Element which can be Acquired and Released.
This avoids the verbosity of checking if an element pointer is null in e.g. a driver which accepts an optional Element* argument.
Public Member Functions | |
constexpr | OptionalElement (Element *element=nullptr) |
constexpr | OptionalElement (Element &element) |
Status | Acquire () |
Status | Release () |