tmp/tmpilc3opq6/{from.md → to.md}
RENAMED
|
@@ -1,12 +1,11 @@
|
|
| 1 |
## Container adaptors <a id="container.adaptors">[[container.adaptors]]</a>
|
| 2 |
|
| 3 |
### In general <a id="container.adaptors.general">[[container.adaptors.general]]</a>
|
| 4 |
|
| 5 |
The headers `<queue>` and `<stack>` define the container adaptors
|
| 6 |
-
`queue`, `priority_queue`, and `stack`.
|
| 7 |
-
the requirements for sequence containers.
|
| 8 |
|
| 9 |
The container adaptors each take a `Container` template parameter, and
|
| 10 |
each constructor takes a `Container` reference argument. This container
|
| 11 |
is copied into the `Container` member of each adaptor. If the container
|
| 12 |
takes an allocator, then a compatible allocator may be passed in to the
|
|
@@ -522,12 +521,12 @@ namespace std {
|
|
| 522 |
bool operator> (const stack<T, Container>& x, const stack<T, Container>& y);
|
| 523 |
template <class T, class Container>
|
| 524 |
bool operator>=(const stack<T, Container>& x, const stack<T, Container>& y);
|
| 525 |
template <class T, class Container>
|
| 526 |
bool operator<=(const stack<T, Container>& x, const stack<T, Container>& y);
|
| 527 |
-
template <class T, class
|
| 528 |
-
void swap(stack<T,
|
| 529 |
|
| 530 |
template <class T, class Container, class Alloc>
|
| 531 |
struct uses_allocator<stack<T, Container>, Alloc>
|
| 532 |
: uses_allocator<Container, Alloc>::type { };
|
| 533 |
}
|
|
@@ -540,11 +539,11 @@ explicit stack(const Container& cont);
|
|
| 540 |
```
|
| 541 |
|
| 542 |
*Effects:* Initializes `c` with `cont`.
|
| 543 |
|
| 544 |
``` cpp
|
| 545 |
-
explicit stack(Container&&
|
| 546 |
```
|
| 547 |
|
| 548 |
*Effects:* Initializes `c` with `std::move(cont)`.
|
| 549 |
|
| 550 |
#### `stack` constructors with allocators <a id="stack.cons.alloc">[[stack.cons.alloc]]</a>
|
|
@@ -651,10 +650,11 @@ template <class T, class Container>
|
|
| 651 |
|
| 652 |
*Effects:* `x.swap(y)`.
|
| 653 |
|
| 654 |
<!-- Link reference definitions -->
|
| 655 |
[alg.sorting]: algorithms.md#alg.sorting
|
|
|
|
| 656 |
[algorithms]: algorithms.md#algorithms
|
| 657 |
[allocator.requirements]: library.md#allocator.requirements
|
| 658 |
[allocator.traits.members]: utilities.md#allocator.traits.members
|
| 659 |
[array]: #array
|
| 660 |
[array.cons]: #array.cons
|
|
@@ -710,17 +710,15 @@ template <class T, class Container>
|
|
| 710 |
[list.special]: #list.special
|
| 711 |
[map]: #map
|
| 712 |
[map.access]: #map.access
|
| 713 |
[map.cons]: #map.cons
|
| 714 |
[map.modifiers]: #map.modifiers
|
| 715 |
-
[map.ops]: #map.ops
|
| 716 |
[map.overview]: #map.overview
|
| 717 |
[map.special]: #map.special
|
| 718 |
[multimap]: #multimap
|
| 719 |
[multimap.cons]: #multimap.cons
|
| 720 |
[multimap.modifiers]: #multimap.modifiers
|
| 721 |
-
[multimap.ops]: #multimap.ops
|
| 722 |
[multimap.overview]: #multimap.overview
|
| 723 |
[multimap.special]: #multimap.special
|
| 724 |
[multiset]: #multiset
|
| 725 |
[multiset.cons]: #multiset.cons
|
| 726 |
[multiset.overview]: #multiset.overview
|
|
@@ -760,10 +758,11 @@ template <class T, class Container>
|
|
| 760 |
[tab:containers.lib.summary]: #tab:containers.lib.summary
|
| 761 |
[tab:containers.optional.operations]: #tab:containers.optional.operations
|
| 762 |
[tab:containers.reversible.requirements]: #tab:containers.reversible.requirements
|
| 763 |
[tab:containers.sequence.optional]: #tab:containers.sequence.optional
|
| 764 |
[tab:containers.sequence.requirements]: #tab:containers.sequence.requirements
|
|
|
|
| 765 |
[unord]: #unord
|
| 766 |
[unord.general]: #unord.general
|
| 767 |
[unord.hash]: utilities.md#unord.hash
|
| 768 |
[unord.map]: #unord.map
|
| 769 |
[unord.map.cnstr]: #unord.map.cnstr
|
|
|
|
| 1 |
## Container adaptors <a id="container.adaptors">[[container.adaptors]]</a>
|
| 2 |
|
| 3 |
### In general <a id="container.adaptors.general">[[container.adaptors.general]]</a>
|
| 4 |
|
| 5 |
The headers `<queue>` and `<stack>` define the container adaptors
|
| 6 |
+
`queue`, `priority_queue`, and `stack`.
|
|
|
|
| 7 |
|
| 8 |
The container adaptors each take a `Container` template parameter, and
|
| 9 |
each constructor takes a `Container` reference argument. This container
|
| 10 |
is copied into the `Container` member of each adaptor. If the container
|
| 11 |
takes an allocator, then a compatible allocator may be passed in to the
|
|
|
|
| 521 |
bool operator> (const stack<T, Container>& x, const stack<T, Container>& y);
|
| 522 |
template <class T, class Container>
|
| 523 |
bool operator>=(const stack<T, Container>& x, const stack<T, Container>& y);
|
| 524 |
template <class T, class Container>
|
| 525 |
bool operator<=(const stack<T, Container>& x, const stack<T, Container>& y);
|
| 526 |
+
template <class T, class Container>
|
| 527 |
+
void swap(stack<T, Container>& x, stack<T, Container>& y) noexcept(noexcept(x.swap(y)));
|
| 528 |
|
| 529 |
template <class T, class Container, class Alloc>
|
| 530 |
struct uses_allocator<stack<T, Container>, Alloc>
|
| 531 |
: uses_allocator<Container, Alloc>::type { };
|
| 532 |
}
|
|
|
|
| 539 |
```
|
| 540 |
|
| 541 |
*Effects:* Initializes `c` with `cont`.
|
| 542 |
|
| 543 |
``` cpp
|
| 544 |
+
explicit stack(Container&& cont = Container());
|
| 545 |
```
|
| 546 |
|
| 547 |
*Effects:* Initializes `c` with `std::move(cont)`.
|
| 548 |
|
| 549 |
#### `stack` constructors with allocators <a id="stack.cons.alloc">[[stack.cons.alloc]]</a>
|
|
|
|
| 650 |
|
| 651 |
*Effects:* `x.swap(y)`.
|
| 652 |
|
| 653 |
<!-- Link reference definitions -->
|
| 654 |
[alg.sorting]: algorithms.md#alg.sorting
|
| 655 |
+
[algorithm.stable]: library.md#algorithm.stable
|
| 656 |
[algorithms]: algorithms.md#algorithms
|
| 657 |
[allocator.requirements]: library.md#allocator.requirements
|
| 658 |
[allocator.traits.members]: utilities.md#allocator.traits.members
|
| 659 |
[array]: #array
|
| 660 |
[array.cons]: #array.cons
|
|
|
|
| 710 |
[list.special]: #list.special
|
| 711 |
[map]: #map
|
| 712 |
[map.access]: #map.access
|
| 713 |
[map.cons]: #map.cons
|
| 714 |
[map.modifiers]: #map.modifiers
|
|
|
|
| 715 |
[map.overview]: #map.overview
|
| 716 |
[map.special]: #map.special
|
| 717 |
[multimap]: #multimap
|
| 718 |
[multimap.cons]: #multimap.cons
|
| 719 |
[multimap.modifiers]: #multimap.modifiers
|
|
|
|
| 720 |
[multimap.overview]: #multimap.overview
|
| 721 |
[multimap.special]: #multimap.special
|
| 722 |
[multiset]: #multiset
|
| 723 |
[multiset.cons]: #multiset.cons
|
| 724 |
[multiset.overview]: #multiset.overview
|
|
|
|
| 758 |
[tab:containers.lib.summary]: #tab:containers.lib.summary
|
| 759 |
[tab:containers.optional.operations]: #tab:containers.optional.operations
|
| 760 |
[tab:containers.reversible.requirements]: #tab:containers.reversible.requirements
|
| 761 |
[tab:containers.sequence.optional]: #tab:containers.sequence.optional
|
| 762 |
[tab:containers.sequence.requirements]: #tab:containers.sequence.requirements
|
| 763 |
+
[temp.deduct]: temp.md#temp.deduct
|
| 764 |
[unord]: #unord
|
| 765 |
[unord.general]: #unord.general
|
| 766 |
[unord.hash]: utilities.md#unord.hash
|
| 767 |
[unord.map]: #unord.map
|
| 768 |
[unord.map.cnstr]: #unord.map.cnstr
|