optional.cpp 646 B

123456789101112131415161718192021222324
  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. #include "experimental/optional"
  10. _LIBCPP_BEGIN_NAMESPACE_EXPERIMENTAL
  11. #ifdef _LIBCPP_HAS_NO_DEFAULTED_FUNCTIONS
  12. bad_optional_access::~bad_optional_access() _NOEXCEPT {}
  13. #else
  14. bad_optional_access::~bad_optional_access() _NOEXCEPT = default;
  15. #endif
  16. _LIBCPP_END_NAMESPACE_EXPERIMENTAL