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

std::length_error cppreference.com
cppreference.com

std::length_error

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

, . , , .

- std::basic_string std::vector::reserve.

-

()
length_error
(public -)
operator=
length_error
(public -)

std::length_error::length_error

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

what_arg
other

std::length_error , . , std::string&&: .

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

LWG 471, . , , what(), .

std::length_error::operator=

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

other. *this other std::length_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::length_error
,
std::length_error


(public - std::basic_string<CharT,Traits,Allocator>) []

Web Proxy Viewer  |  New URL  |  Original Page