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 "optional" 11 #include "experimental/optional" 12 13 namespace std 14 { 15 16 bad_optional_access::~bad_optional_access() _NOEXCEPT = default; 17 what() const18const char* bad_optional_access::what() const _NOEXCEPT { 19 return "bad_optional_access"; 20 } 21 22 } // std 23 24 _LIBCPP_BEGIN_NAMESPACE_EXPERIMENTAL 25 26 bad_optional_access::~bad_optional_access() _NOEXCEPT = default; 27 28 _LIBCPP_END_NAMESPACE_EXPERIMENTAL 29