mirror of
https://github.com/boostorg/optional.git
synced 2025-07-30 20:47:18 +02:00
Added simple operators << and >> to optional<>
[SVN r32533]
This commit is contained in:
@ -763,6 +763,11 @@ template<class T> inline void swap ( optional<T>& x, optional<T>& y )
|
|||||||
optional_detail::optional_swap(x,y);
|
optional_detail::optional_swap(x,y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template<class T> inline optional<T> make_optional ( T const& v )
|
||||||
|
{
|
||||||
|
return optional<T>(v);
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace boost
|
} // namespace boost
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user