4 It is possible to use `optional<T>` with IO streams, provided that `T` can be used with streams. IOStream operators are defined in a separate header.
8 #include <boost/optional/optional_io.hpp>
12 boost::optional<int> o1 = 1, oN = boost::none;
18 The current implementation does not guarantee any particular output. What it guarantees is that if streaming out and then back in `T` gives the same value, then streaming out and then back in `optional<T>` will also give back the same result:
23 #include <boost/optional/optional_io.hpp>
27 boost::optional<int> o1 = 1, oN = boost::none;
28 boost::optional<int> x1, x2;