Reaktoro 
A unified framework for modeling chemically reactive systems
Reaktoro::Optional< T > Class Template Reference

Detailed Description

template<typename T>
class Reaktoro::Optional< T >

A type for defining an optional instance.

#include <Optional.hpp>

Public Member Functions

 Optional ()
 Construct a default, uninitialized, Optional instance.
 
 Optional (const T &value)
 Construct a default, initialized, Optional instance.
 
auto operator() () const -> const T &
 Retrieve the value of the Optional instance.
 
auto set (const T &value) -> void
 Initialize the value of the Optional instance.
 
auto get () const -> const T &
 Retrieve the value of the Optional instance.
 
auto get () -> T &
 Retrieve the value of the Optional instance.
 
auto empty () const -> bool
 Check if the Optional instance is initialized.
 

The documentation for this class was generated from the following file: