1//===----------------------------- typeinfo.cpp ---------------------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#include <typeinfo>
10
11namespace std
12{
13
14// type_info
15
16type_info::~type_info()
17{
18}
19
20// bad_cast
21
22bad_cast::bad_cast() _NOEXCEPT
23{
24}
25
26bad_cast::~bad_cast() _NOEXCEPT
27{
28}
29
30const char*
31bad_cast::what() const _NOEXCEPT
32{
33 return "std::bad_cast";
34}
35
36// bad_typeid
37
38bad_typeid::bad_typeid() _NOEXCEPT
39{
40}
41
42bad_typeid::~bad_typeid() _NOEXCEPT
43{
44}
45
46const char*
47bad_typeid::what() const _NOEXCEPT
48{
49 return "std::bad_typeid";
50}
51
52} // std
53