forked from boostorg/optional
added optional ref swap
and also chaned the copyright year in docs
This commit is contained in:
1 parent
b5b8414c06
commit
94c735af2d
39 files changed
+159
-37
No files matched your search
@@ -167,6 +167,12 @@ public:
|
||||
#endif // BOOST_OPTIONAL_DETAIL_NO_RVALUE_REFERENCES
|
||||
};
|
||||
|
||||
template <class T>
|
||||
void swap ( optional<T&>& x, optional<T&>& y) BOOST_NOEXCEPT
|
||||
{
|
||||
x.swap(y);
|
||||
}
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#endif // 1/0
|
||||
|
||||
Reference in new issue
Block a user