xref: /minix3/external/bsd/libc++/dist/libcxx/src/optional.cpp (revision 4684ddb6aab0b36791c8099bc705d6140b3d05d0)
1*4684ddb6SLionel Sambuc //===------------------------ optional.cpp --------------------------------===//
2*4684ddb6SLionel Sambuc //
3*4684ddb6SLionel Sambuc //                     The LLVM Compiler Infrastructure
4*4684ddb6SLionel Sambuc //
5*4684ddb6SLionel Sambuc // This file is dual licensed under the MIT and the University of Illinois Open
6*4684ddb6SLionel Sambuc // Source Licenses. See LICENSE.TXT for details.
7*4684ddb6SLionel Sambuc //
8*4684ddb6SLionel Sambuc //===----------------------------------------------------------------------===//
9*4684ddb6SLionel Sambuc 
10*4684ddb6SLionel Sambuc #include "experimental/optional"
11*4684ddb6SLionel Sambuc 
12*4684ddb6SLionel Sambuc namespace std  // purposefully not using versioning namespace
13*4684ddb6SLionel Sambuc { namespace experimental {
14*4684ddb6SLionel Sambuc 
15*4684ddb6SLionel Sambuc #ifdef _LIBCPP_HAS_NO_DEFAULTED_FUNCTIONS
16*4684ddb6SLionel Sambuc 
17*4684ddb6SLionel Sambuc bad_optional_access::~bad_optional_access() _NOEXCEPT {}
18*4684ddb6SLionel Sambuc 
19*4684ddb6SLionel Sambuc #else
20*4684ddb6SLionel Sambuc 
21*4684ddb6SLionel Sambuc bad_optional_access::~bad_optional_access() _NOEXCEPT = default;
22*4684ddb6SLionel Sambuc 
23*4684ddb6SLionel Sambuc #endif
24*4684ddb6SLionel Sambuc 
25*4684ddb6SLionel Sambuc }}  // std::experimental
26