You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Vector sorted by the binary predicate shorter_than:
1335
-
fun cute blah fluffy kittens meowmeowmeow
1336
+
fun cute blah fluffy kittens meowmeowmeow
1336
1337
1337
1338
Result of equal_range with value = fred:
1338
-
fun [ cute blah ] fluffy kittens meowmeowmeow
1339
+
fun [ cute blah ] fluffy kittens meowmeowmeow
1339
1340
1340
1341
```
1341
1342
@@ -2102,7 +2103,7 @@ A copy of the function object after it has been applied to all of the elements i
2102
2103
2103
2104
### Remarks
2104
2105
2105
-
The algorithm `for_each` is very flexible, allowing the modification of each element within a range in different, user-specified ways. Templatized functions may be reused in a modified form by passing different parameters. User-defined functions may accumulate information within an internal state that the algorithm may return after processing all of the elements in the range.
2106
+
The algorithm `for_each` is flexible, allowing the modification of each element within a range in different, user-specified ways. Templatized functions may be reused in a modified form by passing different parameters. User-defined functions may accumulate information within an internal state that the algorithm may return after processing all of the elements in the range.
2106
2107
2107
2108
The range referenced must be valid; all pointers must be dereferenceable and, within the sequence, the last position must be reachable from the first by incrementation.
@@ -81,7 +82,7 @@ A pointer to the allocated object.
81
82
82
83
### Remarks
83
84
84
-
This member function is used by containers when compiled with a compiler that cannot compile rebind. It implements `_Charalloc` for the user-defined allocator by returning the result of a call to the `allocate` function of the synchronization filter.
85
+
This member function is used by containers when compiled with a compiler that can't compile rebind. It implements `_Charalloc` for the user-defined allocator by returning the result of a call to the `allocate` function of the synchronization filter.
@@ -101,7 +102,7 @@ The number of objects to be deallocated from storage.
101
102
102
103
### Remarks
103
104
104
-
This member function is used by containers when compiled with a compiler that cannot compile rebind. It implements `_Chardealloc` for the user-defined allocator by calling the `deallocate` function of the synchronization filter. The pointer ptr must have been earlier returned by a call to `_Charalloc` for an allocator object that compares equal to **`*this`**, allocating an array object of the same size and type. `_Chardealloc` never throws an exception.
105
+
This member function is used by containers when compiled with a compiler that can't compile rebind. It implements `_Chardealloc` for the user-defined allocator by calling the `deallocate` function of the synchronization filter. The pointer ptr must have been earlier returned by a call to `_Charalloc` for an allocator object that compares equal to **`*this`**, allocating an array object of the same size and type. `_Chardealloc` never throws an exception.
@@ -297,9 +298,9 @@ A **`const`** random-access iterator that points at the first element of the ran
297
298
298
299
### Remarks
299
300
300
-
With the return value of `cbegin`, the elements in the range cannot be modified.
301
+
With the return value of `cbegin`, the elements in the range can't be modified.
301
302
302
-
You can use this member function in place of the `begin()` member function to guarantee that the return value is `const_iterator`. Typically, it's used in conjunction with the [`auto`](../cpp/auto-cpp.md) type deduction keyword, as shown in the following example. In the example, consider `Container` to be a modifiable (non- **`const`**) container of any kind that supports `begin()` and `cbegin()`.
303
+
You can use this member function in place of the `begin()` member function to guarantee that the return value is `const_iterator`. Typically, it's used with the [`auto`](../cpp/auto-cpp.md) type deduction keyword, as shown in the following example. In the example, consider `Container` to be a modifiable (non- **`const`**) container of any kind that supports `begin()` and `cbegin()`.
303
304
304
305
```cpp
305
306
auto i1 = Container.begin();
@@ -325,7 +326,7 @@ A random-access iterator that points just beyond the end of the range.
325
326
326
327
`cend` is used to test whether an iterator has passed the end of its range.
327
328
328
-
You can use this member function in place of the `end()` member function to guarantee that the return value is `const_iterator`. Typically, it's used in conjunction with the [`auto`](../cpp/auto-cpp.md) type deduction keyword, as shown in the following example. In the example, consider `Container` to be a modifiable (non- **`const`**) container of any kind that supports `end()` and `cend()`.
329
+
You can use this member function in place of the `end()` member function to guarantee that the return value is `const_iterator`. Typically, it's used with the [`auto`](../cpp/auto-cpp.md) type deduction keyword, as shown in the following example. In the example, consider `Container` to be a modifiable (non- **`const`**) container of any kind that supports `end()` and `cend()`.
329
330
330
331
```cpp
331
332
auto i1 = Container.end();
@@ -335,7 +336,7 @@ auto i2 = Container.cend();
335
336
// i2 is Container<T>::const_iterator
336
337
```
337
338
338
-
The value returned by `cend`should not be dereferenced.
339
+
The value returned by `cend`shouldn't be dereferenced.
The signed integer type describes an object that can represent the difference between the addresses of any two elements in the controlled sequence. It is a synonym for the type `std::ptrdiff_t`.
665
+
The signed integer type describes an object that can represent the difference between the addresses of any two elements in the controlled sequence. It's a synonym for the type `std::ptrdiff_t`.
665
666
666
667
### Example
667
668
@@ -793,7 +794,7 @@ int main()
793
794
794
795
## <aname="fill"></a> `array::fill`
795
796
796
-
Erases a array and copies the specified elements to the empty array.
797
+
Erases an array and copies the specified elements to the empty array.
797
798
798
799
```cpp
799
800
voidfill(const Type& val);
@@ -992,7 +993,7 @@ Position of element to access.
992
993
993
994
The member functions return a reference to the element of the controlled sequence at position *`off`*. If that position is invalid, the behavior is undefined.
994
995
995
-
There is also a non-member [`get`](array-functions.md#get) function available to get a reference to an element of an **`array`**.
996
+
There's also a non-member [`get`](array-functions.md#get) function available to get a reference to an element of an **`array`**.
996
997
997
998
### Example
998
999
@@ -1348,15 +1349,15 @@ int main()
1348
1349
1349
1350
## <aname="size_type"></a> `array::size_type`
1350
1351
1351
-
The type of an unsigned distance between two element.
1352
+
The type of an unsigned distance between two elements.
1352
1353
1353
1354
```cpp
1354
1355
typedef std::size_t size_type;
1355
1356
```
1356
1357
1357
1358
### Remarks
1358
1359
1359
-
The unsigned integer type describes an object that can represent the length of any controlled sequence. It is a synonym for the type `std::size_t`.
1360
+
The unsigned integer type describes an object that can represent the length of any controlled sequence. It's a synonym for the type `std::size_t`.
1360
1361
1361
1362
### Example
1362
1363
@@ -1405,9 +1406,9 @@ Array to swap contents with.
1405
1406
1406
1407
### Remarks
1407
1408
1408
-
The member function swaps the controlled sequences between **`*this`** and *right*. It performs a number of element assignments and constructor calls proportional to `N`.
1409
+
The member function swaps the controlled sequences between **`*this`** and *right*. It performs many element assignments and constructor calls proportional to `N`.
1409
1410
1410
-
There is also a non-member [`swap`](array-functions.md#swap) function available to swap two **`array`** instances.
1411
+
There's also a non-member [`swap`](array-functions.md#swap) function available to swap two **`array`** instances.
0 commit comments