Lumiera  0.pre.03
»edit your freedom«
optional-ref.hpp File Reference

Go to the source code of this file.

Description

a checked, switchable reference.

Offers semantics similar to a pointer, but throws (not segfaults) on invalid dereferentiation

Definition in file optional-ref.hpp.

#include "lib/error.hpp"

Classes

class  OptionalRef< T >
 Optional or switchable link to an existing object. More...
 

Functions

template<typename T >
OptionalRef< T > optionalRefTo (T &target)
 

Namespaces

 lib
 Implementation namespace for support and library code.