Add all the relational operators to std::experimental::optional. Also update bad_optional_access to match the Library Fundamentals draft standard. This is not all of the upcoming changes to optional, though.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@223775 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Marshall Clow
2014-12-09 14:49:17 +00:00
parent fff544efbd
commit 4ad67e08cb
24 changed files with 1047 additions and 266 deletions

View File

@@ -9,8 +9,7 @@
#include "experimental/optional"
namespace std // purposefully not using versioning namespace
{ namespace experimental {
_LIBCPP_BEGIN_NAMESPACE_EXPERIMENTAL
#ifdef _LIBCPP_HAS_NO_DEFAULTED_FUNCTIONS
@@ -22,4 +21,4 @@ bad_optional_access::~bad_optional_access() _NOEXCEPT = default;
#endif
}} // std::experimental
_LIBCPP_END_NAMESPACE_EXPERIMENTAL