added optional ref swap

and also chaned the copyright year in docs
This commit is contained in:
Andrzej Krzemienski
2016-02-13 15:33:07 +01:00
parent b5b8414c06
commit 94c735af2d
39 changed files with 159 additions and 37 deletions

View File

@ -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