cpp/utility/optional/value

If contains a value, returns a reference to the contained value.

Otherwise, throws a std exception.

Parameters
(none)

Return value
A reference to the contained value.

Exceptions
std if does not contain a value.