diff options
author | 2016-09-03 18:39:32 +0000 | |
---|---|---|
committer | 2016-09-03 18:39:32 +0000 | |
commit | fe1ccca2776129541f1c4f645e4d1de89a22a031 (patch) | |
tree | 8e4fd7a09a5a15a9498fd2d88dcddbd40e999c79 /lib/libcxx/src/optional.cpp | |
parent | Fixed missing null check in switchctl.c (diff) | |
download | wireguard-openbsd-fe1ccca2776129541f1c4f645e4d1de89a22a031.tar.xz wireguard-openbsd-fe1ccca2776129541f1c4f645e4d1de89a22a031.zip |
Import libc++ 3.9.0
Diffstat (limited to 'lib/libcxx/src/optional.cpp')
-rw-r--r-- | lib/libcxx/src/optional.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/libcxx/src/optional.cpp b/lib/libcxx/src/optional.cpp new file mode 100644 index 00000000000..8c5dd76d86d --- /dev/null +++ b/lib/libcxx/src/optional.cpp @@ -0,0 +1,24 @@ +//===------------------------ optional.cpp --------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#include "experimental/optional" + +_LIBCPP_BEGIN_NAMESPACE_EXPERIMENTAL + +#ifdef _LIBCPP_HAS_NO_DEFAULTED_FUNCTIONS + +bad_optional_access::~bad_optional_access() _NOEXCEPT {} + +#else + +bad_optional_access::~bad_optional_access() _NOEXCEPT = default; + +#endif + +_LIBCPP_END_NAMESPACE_EXPERIMENTAL |