#include <toast/python/optional.hpp>
Instantiate the type register_optional<T> to do the registration.
When going from C++ to Python, empty optional's will become the 'None' object, and non-empty optionals of type boost::optional<T> will behave like T.\ From Python to C++, None instances will become empty boost::optional<T>'s, and non-none objects will instantiated boost::optional<T>'s.
Classes | |
struct | optional_from_python |
struct | optional_to_python |