std::underflow_error
cppreference.com
<tbody>
</tbody>
class underflow_error; |
||
, . ( , ).
( , math_errhandling). . , boost.math std::underflow_error, boost::math::policies::throw_on_error ( ).
-
() |
underflow_error (public -) |
operator= |
underflow_error (public -) |
std::underflow_error::underflow_error
<tbody> </tbody> <tbody class="t-dcl-rev t-dcl-rev-num "> </tbody><tbody> </tbody> underflow_error( const std::string& what_arg ); |
(1) | |
underflow_error( const char* what_arg ); |
(2) | |
| (3) | ||
underflow_error( const underflow_error& other ); |
( C++11) | |
underflow_error( const underflow_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::underflow_error, std::strcmp(what(), other.what()) == 0. . ( C++11)| what_arg | ||
| other |
1,2) std::bad_alloc.
std::underflow_error , . , std::string&&: .
LWG 254, std::string. std::string.
LWG 471, . , , what(), .
std::underflow_error::operator=
<tbody> </tbody> <tbody class="t-dcl-rev "> </tbody><tbody> </tbody> underflow_error& operator=( const underflow_error& other ); |
( C++11) | |
underflow_error& operator=( const underflow_error& other ) noexcept; |
( C++11) | |
other. *this other std::underflow_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::underflow_error |
, std::underflow_error
|