tmp/tmp71_dfkyf/{from.md → to.md}
RENAMED
|
@@ -20,10 +20,22 @@ void push(value_type&& x);
|
|
| 20 |
``` cpp
|
| 21 |
c.push_back(std::move(x));
|
| 22 |
push_heap(c.begin(), c.end(), comp);
|
| 23 |
```
|
| 24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
``` cpp
|
| 26 |
template<class... Args> void emplace(Args&&... args);
|
| 27 |
```
|
| 28 |
|
| 29 |
*Effects:* As if by:
|
|
|
|
| 20 |
``` cpp
|
| 21 |
c.push_back(std::move(x));
|
| 22 |
push_heap(c.begin(), c.end(), comp);
|
| 23 |
```
|
| 24 |
|
| 25 |
+
``` cpp
|
| 26 |
+
template<container-compatible-range<T> R>
|
| 27 |
+
void push_range(R&& rg);
|
| 28 |
+
```
|
| 29 |
+
|
| 30 |
+
*Effects:* Inserts all elements of `rg` in `c` via
|
| 31 |
+
`c.append_range(std::forward<R>(rg))` if that is a valid expression, or
|
| 32 |
+
`ranges::copy(rg, back_inserter(c))` otherwise. Then restores the heap
|
| 33 |
+
property as if by `make_heap(c.begin(), c.end(), comp)`.
|
| 34 |
+
|
| 35 |
+
*Ensures:* `is_heap(c.begin(), c.end(), comp)` is `true`.
|
| 36 |
+
|
| 37 |
``` cpp
|
| 38 |
template<class... Args> void emplace(Args&&... args);
|
| 39 |
```
|
| 40 |
|
| 41 |
*Effects:* As if by:
|