tmp/tmpf4oiauuy/{from.md → to.md}
RENAMED
|
@@ -2,44 +2,44 @@
|
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
void push(const value_type& x);
|
| 5 |
```
|
| 6 |
|
| 7 |
-
*Effects:*
|
| 8 |
|
| 9 |
``` cpp
|
| 10 |
c.push_back(x);
|
| 11 |
push_heap(c.begin(), c.end(), comp);
|
| 12 |
```
|
| 13 |
|
| 14 |
``` cpp
|
| 15 |
void push(value_type&& x);
|
| 16 |
```
|
| 17 |
|
| 18 |
-
*Effects:*
|
| 19 |
|
| 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:*
|
| 30 |
|
| 31 |
``` cpp
|
| 32 |
c.emplace_back(std::forward<Args>(args)...);
|
| 33 |
push_heap(c.begin(), c.end(), comp);
|
| 34 |
```
|
| 35 |
|
| 36 |
``` cpp
|
| 37 |
void pop();
|
| 38 |
```
|
| 39 |
|
| 40 |
-
*Effects:*
|
| 41 |
|
| 42 |
``` cpp
|
| 43 |
pop_heap(c.begin(), c.end(), comp);
|
| 44 |
c.pop_back();
|
| 45 |
```
|
|
|
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
void push(const value_type& x);
|
| 5 |
```
|
| 6 |
|
| 7 |
+
*Effects:* As if by:
|
| 8 |
|
| 9 |
``` cpp
|
| 10 |
c.push_back(x);
|
| 11 |
push_heap(c.begin(), c.end(), comp);
|
| 12 |
```
|
| 13 |
|
| 14 |
``` cpp
|
| 15 |
void push(value_type&& x);
|
| 16 |
```
|
| 17 |
|
| 18 |
+
*Effects:* As if by:
|
| 19 |
|
| 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:
|
| 30 |
|
| 31 |
``` cpp
|
| 32 |
c.emplace_back(std::forward<Args>(args)...);
|
| 33 |
push_heap(c.begin(), c.end(), comp);
|
| 34 |
```
|
| 35 |
|
| 36 |
``` cpp
|
| 37 |
void pop();
|
| 38 |
```
|
| 39 |
|
| 40 |
+
*Effects:* As if by:
|
| 41 |
|
| 42 |
``` cpp
|
| 43 |
pop_heap(c.begin(), c.end(), comp);
|
| 44 |
c.pop_back();
|
| 45 |
```
|