stdexcept (227983) | stdexcept (277217) |
---|---|
1// -*- C++ -*- 2//===--------------------------- stdexcept --------------------------------===// 3// 4// The LLVM Compiler Infrastructure 5// 6// This file is dual licensed under the MIT and the University of Illinois Open 7// Source Licenses. See LICENSE.TXT for details. 8// --- 36 unchanged lines hidden (view full) --- 45#include <__config> 46#include <exception> 47#include <iosfwd> // for string forward decl 48 49#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) 50#pragma GCC system_header 51#endif 52 | 1// -*- C++ -*- 2//===--------------------------- stdexcept --------------------------------===// 3// 4// The LLVM Compiler Infrastructure 5// 6// This file is dual licensed under the MIT and the University of Illinois Open 7// Source Licenses. See LICENSE.TXT for details. 8// --- 36 unchanged lines hidden (view full) --- 45#include <__config> 46#include <exception> 47#include <iosfwd> // for string forward decl 48 49#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) 50#pragma GCC system_header 51#endif 52 |
53#ifndef _LIBCPP___REFSTRING 54_LIBCPP_BEGIN_NAMESPACE_STD 55class _LIBCPP_HIDDEN __libcpp_refstring { 56 const char *__imp_ _LIBCPP_UNUSED; 57}; 58_LIBCPP_END_NAMESPACE_STD 59#endif 60 |
|
53namespace std // purposefully not using versioning namespace 54{ 55 56class _LIBCPP_EXCEPTION_ABI logic_error 57 : public exception 58{ 59private: | 61namespace std // purposefully not using versioning namespace 62{ 63 64class _LIBCPP_EXCEPTION_ABI logic_error 65 : public exception 66{ 67private: |
60 void* __imp_; | 68 _VSTD::__libcpp_refstring __imp_; |
61public: 62 explicit logic_error(const string&); 63 explicit logic_error(const char*); 64 65 logic_error(const logic_error&) _NOEXCEPT; 66 logic_error& operator=(const logic_error&) _NOEXCEPT; 67 68 virtual ~logic_error() _NOEXCEPT; 69 70 virtual const char* what() const _NOEXCEPT; 71}; 72 73class _LIBCPP_EXCEPTION_ABI runtime_error 74 : public exception 75{ 76private: | 69public: 70 explicit logic_error(const string&); 71 explicit logic_error(const char*); 72 73 logic_error(const logic_error&) _NOEXCEPT; 74 logic_error& operator=(const logic_error&) _NOEXCEPT; 75 76 virtual ~logic_error() _NOEXCEPT; 77 78 virtual const char* what() const _NOEXCEPT; 79}; 80 81class _LIBCPP_EXCEPTION_ABI runtime_error 82 : public exception 83{ 84private: |
77 void* __imp_; | 85 _VSTD::__libcpp_refstring __imp_; |
78public: 79 explicit runtime_error(const string&); 80 explicit runtime_error(const char*); 81 82 runtime_error(const runtime_error&) _NOEXCEPT; 83 runtime_error& operator=(const runtime_error&) _NOEXCEPT; 84 85 virtual ~runtime_error() _NOEXCEPT; --- 77 unchanged lines hidden --- | 86public: 87 explicit runtime_error(const string&); 88 explicit runtime_error(const char*); 89 90 runtime_error(const runtime_error&) _NOEXCEPT; 91 runtime_error& operator=(const runtime_error&) _NOEXCEPT; 92 93 virtual ~runtime_error() _NOEXCEPT; --- 77 unchanged lines hidden --- |