Mercurial > hg > CbC > CbC_llvm
comparison libcxx/src/optional.cpp @ 221:79ff65ed7e25
LLVM12 Original
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 15 Jun 2021 19:15:29 +0900 |
parents | 1d019706d866 |
children | c4bab56944e8 |
comparison
equal
deleted
inserted
replaced
220:42394fc6a535 | 221:79ff65ed7e25 |
---|---|
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
6 // | 6 // |
7 //===----------------------------------------------------------------------===// | 7 //===----------------------------------------------------------------------===// |
8 | 8 |
9 #include "optional" | 9 #include "optional" |
10 #include "__availability" | |
10 | 11 |
11 namespace std | 12 namespace std |
12 { | 13 { |
13 | 14 |
14 bad_optional_access::~bad_optional_access() _NOEXCEPT = default; | 15 bad_optional_access::~bad_optional_access() noexcept = default; |
15 | 16 |
16 const char* bad_optional_access::what() const _NOEXCEPT { | 17 const char* bad_optional_access::what() const noexcept { |
17 return "bad_optional_access"; | 18 return "bad_optional_access"; |
18 } | 19 } |
19 | 20 |
20 } // std | 21 } // std |
21 | 22 |
31 { | 32 { |
32 public: | 33 public: |
33 bad_optional_access() : std::logic_error("Bad optional Access") {} | 34 bad_optional_access() : std::logic_error("Bad optional Access") {} |
34 | 35 |
35 // Get the key function ~bad_optional_access() into the dylib | 36 // Get the key function ~bad_optional_access() into the dylib |
36 virtual ~bad_optional_access() _NOEXCEPT; | 37 virtual ~bad_optional_access() noexcept; |
37 }; | 38 }; |
38 | 39 |
39 bad_optional_access::~bad_optional_access() _NOEXCEPT = default; | 40 bad_optional_access::~bad_optional_access() noexcept = default; |
40 | 41 |
41 _LIBCPP_END_NAMESPACE_EXPERIMENTAL | 42 _LIBCPP_END_NAMESPACE_EXPERIMENTAL |