tmp/tmpkx44jqh8/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
### Header `<vector>` synopsis <a id="vector.syn">[[vector.syn]]</a>
|
| 2 |
+
|
| 3 |
+
``` cpp
|
| 4 |
+
#include <initializer_list>
|
| 5 |
+
|
| 6 |
+
namespace std {
|
| 7 |
+
// [vector], class template vector
|
| 8 |
+
template <class T, class Allocator = allocator<T>> class vector;
|
| 9 |
+
template <class T, class Allocator>
|
| 10 |
+
bool operator==(const vector<T, Allocator>& x, const vector<T, Allocator>& y);
|
| 11 |
+
template <class T, class Allocator>
|
| 12 |
+
bool operator< (const vector<T, Allocator>& x, const vector<T, Allocator>& y);
|
| 13 |
+
template <class T, class Allocator>
|
| 14 |
+
bool operator!=(const vector<T, Allocator>& x, const vector<T, Allocator>& y);
|
| 15 |
+
template <class T, class Allocator>
|
| 16 |
+
bool operator> (const vector<T, Allocator>& x, const vector<T, Allocator>& y);
|
| 17 |
+
template <class T, class Allocator>
|
| 18 |
+
bool operator>=(const vector<T, Allocator>& x, const vector<T, Allocator>& y);
|
| 19 |
+
template <class T, class Allocator>
|
| 20 |
+
bool operator<=(const vector<T, Allocator>& x, const vector<T, Allocator>& y);
|
| 21 |
+
template <class T, class Allocator>
|
| 22 |
+
void swap(vector<T, Allocator>& x, vector<T, Allocator>& y)
|
| 23 |
+
noexcept(noexcept(x.swap(y)));
|
| 24 |
+
|
| 25 |
+
// [vector.bool], class vector<bool>
|
| 26 |
+
template <class Allocator> class vector<bool, Allocator>;
|
| 27 |
+
|
| 28 |
+
// hash support
|
| 29 |
+
template <class T> struct hash;
|
| 30 |
+
template <class Allocator> struct hash<vector<bool, Allocator>>;
|
| 31 |
+
|
| 32 |
+
namespace pmr {
|
| 33 |
+
template <class T>
|
| 34 |
+
using vector = std::vector<T, polymorphic_allocator<T>>;
|
| 35 |
+
}
|
| 36 |
+
}
|
| 37 |
+
```
|
| 38 |
+
|