std::bad_array_new_length
std::bad_array_new_length
Defined in header <new> | ||
---|---|---|
class bad_array_new_length; | (since C++11) |
std::bad_array_new_length
is the type of the object thrown as exceptions by the new-expressions to report invalid array lengths if.
1) array length is negative.
2) total size of the new array would exceed implementation-defined maximum value.
3) the number of initializer-clauses exceeds the number of elements to initialize.
Only the first array dimension may generate this ex