From Jason Turner

[new.badlength]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpcihf9wq5/{from.md → to.md} +11 -3
tmp/tmpcihf9wq5/{from.md → to.md} RENAMED
@@ -3,23 +3,31 @@
3
  ``` cpp
4
  namespace std {
5
  class bad_array_new_length : public bad_alloc {
6
  public:
7
  bad_array_new_length() noexcept;
 
8
  };
9
  }
10
  ```
11
 
12
  The class `bad_array_new_length` defines the type of objects thrown as
13
  exceptions by the implementation to report an attempt to allocate an
14
- array of size less than zero or greater than an implementation-defined
15
  limit ([[expr.new]]).
16
 
17
  ``` cpp
18
  bad_array_new_length() noexcept;
19
  ```
20
 
21
  *Effects:* constructs an object of class `bad_array_new_length`.
22
 
23
- *Remarks:* the result of calling `what()` on the newly constructed
24
- object is implementation-defined.
 
 
 
 
 
 
 
25
 
 
3
  ``` cpp
4
  namespace std {
5
  class bad_array_new_length : public bad_alloc {
6
  public:
7
  bad_array_new_length() noexcept;
8
+ const char* what() const noexcept override;
9
  };
10
  }
11
  ```
12
 
13
  The class `bad_array_new_length` defines the type of objects thrown as
14
  exceptions by the implementation to report an attempt to allocate an
15
+ array of size less than zero or greater than an *implementation-defined*
16
  limit ([[expr.new]]).
17
 
18
  ``` cpp
19
  bad_array_new_length() noexcept;
20
  ```
21
 
22
  *Effects:* constructs an object of class `bad_array_new_length`.
23
 
24
+ ``` cpp
25
+ const char* what() const noexcept override;
26
+ ```
27
+
28
+ *Returns:* An *implementation-defined* NTBS.
29
+
30
+ *Remarks:* The message may be a null-terminated multibyte
31
+ string ([[multibyte.strings]]), suitable for conversion and display as
32
+ a `wstring` ([[string.classes]], [[locale.codecvt]]).
33