22#ifndef LIB_OPTIONAL_REF_H
23#define LIB_OPTIONAL_REF_H
30 using LERR_(BOTTOM_VALUE);
74 explicit operator bool()
const {
return isValid(); }
82 ,
LERR_(BOTTOM_VALUE));
132 return ref() == otherTarget;
Optional or switchable link to an existing object.
friend bool operator==(OptionalRef const &r1, OptionalRef const &r2)
bool points_to(T const &target) const
friend bool operator!=(OptionalRef const &r1, OptionalRef const &r2)
Lumiera error handling (C++ interface).
Implementation namespace for support and library code.
OptionalRef< T > optionalRefTo(T &target)
LumieraError< LERR_(LOGIC)> Logic