Path: blob/master/libs/c++abi/src/stdlib_stdexcept.cpp
12346 views
//===------------------------ stdexcept.cpp -------------------------------===//1//2// The LLVM Compiler Infrastructure3//4// This file is dual licensed under the MIT and the University of Illinois Open5// Source Licenses. See LICENSE.TXT for details.6//7//===----------------------------------------------------------------------===//89#include "include/refstring.h"10#include "stdexcept"11#include "new"12#include <cstdlib>13#include <cstring>14#include <cstdint>15#include <cstddef>1617static_assert(sizeof(std::__libcpp_refstring) == sizeof(const char *), "");1819namespace std // purposefully not using versioning namespace20{2122logic_error::~logic_error() _NOEXCEPT {}2324const char*25logic_error::what() const _NOEXCEPT26{27return __imp_.c_str();28}2930runtime_error::~runtime_error() _NOEXCEPT {}3132const char*33runtime_error::what() const _NOEXCEPT34{35return __imp_.c_str();36}3738domain_error::~domain_error() _NOEXCEPT {}39invalid_argument::~invalid_argument() _NOEXCEPT {}40length_error::~length_error() _NOEXCEPT {}41out_of_range::~out_of_range() _NOEXCEPT {}4243range_error::~range_error() _NOEXCEPT {}44overflow_error::~overflow_error() _NOEXCEPT {}45underflow_error::~underflow_error() _NOEXCEPT {}4647} // std484950