| Defined in header
<experimental/new> | ||
|---|---|---|
class bad_array_length : public std::bad_alloc; |
std::bad_array_length is the type of the object thrown as exceptions by the constructors of arrays of runtime bound and objects of type std::dynarray to report invalid array lengths if.
std::dynarray)| (constructor) | constructs the bad_array_length object (public member function) |
bad_array_length(); | (since C++14) |
Constructs new exception object.
(none).
noexcept specification: noexcept| [virtual]
| destructs the exception object (virtual public member function of std::exception) |
| [virtual]
| returns an explanatory string (virtual public member function of std::exception) |
The override for the virtual member function what() may by provided, but is not required.
| (C++11)
| exception thrown on allocation of array with invalid length (class) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/memory/new/bad_array_length