std::range_error
cppreference.com
<tbody>
</tbody>
class range_error; |
||
, . ( , ).
, , std::wstring_convert::from_bytes std::wstring_convert::to_bytes.
( , math_errhandling).
-
() |
range_error (public -) |
operator= |
range_error (public -) |
std::range_error::range_error
<tbody> </tbody> <tbody class="t-dcl-rev t-dcl-rev-num "> </tbody><tbody> </tbody> range_error( const std::string& what_arg ); |
(1) | |
range_error( const char* what_arg ); |
(2) | |
| (3) | ||
range_error( const range_error& other ); |
( C++11) | |
range_error( const range_error& other ) noexcept; |
( C++11) | |
1)
what_arg . std::strcmp(what(), what_arg.c_str()) == 0.2)
what_arg . std::strcmp(what(), what_arg) == 0.3) .
*this other std::range_error, std::strcmp(what(), other.what()) == 0. . ( C++11)| what_arg | ||
| other |
1,2) std::bad_alloc.
std::range_error , . , std::string&&: .
LWG 254, std::string. std::string.
LWG 471, . , , what(), .
std::range_error::operator=
<tbody> </tbody> <tbody class="t-dcl-rev "> </tbody><tbody> </tbody> range_error& operator=( const range_error& other ); |
( C++11) | |
range_error& operator=( const range_error& other ) noexcept; |
( C++11) | |
other. *this other std::range_error, std::strcmp(what(), other.what()) == 0 . . ( C++11)
| other |
*this
LWG 471, . , , what(), .
std::exception
-
[virtual] |
(virtual public of std::exception -)
|
[virtual] |
(virtual public of std::exception -)
|
C++:
| LWG 254 | C++98 | , const char*,
|
|
| LWG 471 | C++98 | std::range_error |
, std::range_error
|