[ Web Proxy ]
URL:
Viewing: https://ru.cppreference.com/cpp/error/domain_error [Back]  [Original]

std::domain_error cppreference.com
cppreference.com

std::domain_error

cppreference.com
<tbody> </tbody>
class domain_error;

, . , , , .

( , math_errhandling). . , boost.math std::domain_error, boost::math::policies::throw_on_error ( ).

-

()
domain_error
(public -)
operator=
domain_error
(public -)

std::domain_error::domain_error

<tbody> </tbody> <tbody class="t-dcl-rev t-dcl-rev-num "> </tbody><tbody> </tbody>
domain_error( const std::string& what_arg );
(1)
domain_error( const char* what_arg );
(2)
(3)
domain_error( const domain_error& other );
( C++11)
domain_error( const domain_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::domain_error, std::strcmp(what(), other.what()) == 0. . ( C++11)

what_arg
other

std::domain_error , . , std::string&&: .

LWG 254, std::string. std::string.

LWG 471, . , , what(), .

std::domain_error::operator=

<tbody> </tbody> <tbody class="t-dcl-rev "> </tbody><tbody> </tbody>
domain_error& operator=( const domain_error& other );
( C++11)
domain_error& operator=( const domain_error& other ) noexcept;
( C++11)

other. *this other std::domain_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::domain_error
,
std::domain_error

Web Proxy Viewer  |  New URL  |  Original Page