From Jason Turner

[string.require]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp2izzfvsd/{from.md → to.md} +9 -10
tmp/tmp2izzfvsd/{from.md → to.md} RENAMED
@@ -5,24 +5,23 @@ operation throws an exception object of type `length_error`.
5
 
6
  If any member function or operator of `basic_string` throws an
7
  exception, that function or operator has no other effect on the
8
  `basic_string` object.
9
 
10
- In every specialization `basic_string<charT, traits, Allocator>`, the
11
- type `allocator_traits<Allocator>::value_type` shall name the same type
12
- as `charT`. Every object of type
13
- `basic_string<charT, traits, Allocator>` uses an object of type
14
- `Allocator` to allocate and free storage for the contained `charT`
15
- objects as needed. The `Allocator` object used is obtained as described
16
- in [[container.requirements.general]]. In every specialization
17
  `basic_string<charT, traits, Allocator>`, the type `traits` shall meet
18
  the character traits requirements [[char.traits]].
19
 
20
  [*Note 1*: Every specialization
21
- `basic_string<charT, traits, Allocator>` is an allocator-aware
22
- container, but does not use the allocator’s `construct` and `destroy`
23
- member functions [[container.requirements.general]]. — *end note*]
 
 
24
 
25
  [*Note 2*: The program is ill-formed if `traits::char_type` is not the
26
  same type as `charT`. — *end note*]
27
 
28
  References, pointers, and iterators referring to the elements of a
 
5
 
6
  If any member function or operator of `basic_string` throws an
7
  exception, that function or operator has no other effect on the
8
  `basic_string` object.
9
 
10
+ Every object of type `basic_string<charT, traits, Allocator>` uses an
11
+ object of type `Allocator` to allocate and free storage for the
12
+ contained `charT` objects as needed. The `Allocator` object used is
13
+ obtained as described in [[container.reqmts]]. In every specialization
 
 
 
14
  `basic_string<charT, traits, Allocator>`, the type `traits` shall meet
15
  the character traits requirements [[char.traits]].
16
 
17
  [*Note 1*: Every specialization
18
+ `basic_string<charT, traits, Allocator>` is an allocator-aware container
19
+ [[container.alloc.reqmts]], but does not use the allocator’s `construct`
20
+ and `destroy` member functions [[container.requirements.pre]]. The
21
+ program is ill-formed if `Allocator::value_type` is not the same type as
22
+ `charT`. — *end note*]
23
 
24
  [*Note 2*: The program is ill-formed if `traits::char_type` is not the
25
  same type as `charT`. — *end note*]
26
 
27
  References, pointers, and iterators referring to the elements of a