]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/libc++/src/optional.cpp
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / contrib / libc++ / src / optional.cpp
1 //===------------------------ optional.cpp --------------------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 #include "experimental/optional"
11
12 _LIBCPP_BEGIN_NAMESPACE_EXPERIMENTAL
13
14 #ifdef _LIBCPP_HAS_NO_DEFAULTED_FUNCTIONS
15
16 bad_optional_access::~bad_optional_access() _NOEXCEPT {}
17
18 #else
19
20 bad_optional_access::~bad_optional_access() _NOEXCEPT = default;
21
22 #endif
23
24 _LIBCPP_END_NAMESPACE_EXPERIMENTAL