tmp/tmp1c7j5pxp/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
### Header `<hive>` synopsis <a id="hive.syn">[[hive.syn]]</a>
|
| 2 |
+
|
| 3 |
+
``` cpp
|
| 4 |
+
#include <initializer_list> // see [initializer.list.syn]
|
| 5 |
+
#include <compare> // see [compare.syn]
|
| 6 |
+
|
| 7 |
+
namespace std {
|
| 8 |
+
struct hive_limits {
|
| 9 |
+
size_t min;
|
| 10 |
+
size_t max;
|
| 11 |
+
constexpr hive_limits(size_t minimum, size_t maximum) noexcept
|
| 12 |
+
: min(minimum), max(maximum) {}
|
| 13 |
+
};
|
| 14 |
+
|
| 15 |
+
// \ref {hive}, class template hive
|
| 16 |
+
template<class T, class Allocator = allocator<T>> class hive;
|
| 17 |
+
|
| 18 |
+
template<class T, class Allocator>
|
| 19 |
+
void swap(hive<T, Allocator>& x, hive<T, Allocator>& y)
|
| 20 |
+
noexcept(noexcept(x.swap(y)));
|
| 21 |
+
|
| 22 |
+
template<class T, class Allocator, class U = T>
|
| 23 |
+
typename hive<T, Allocator>::size_type
|
| 24 |
+
erase(hive<T, Allocator>& c, const U& value);
|
| 25 |
+
|
| 26 |
+
template<class T, class Allocator, class Predicate>
|
| 27 |
+
typename hive<T, Allocator>::size_type
|
| 28 |
+
erase_if(hive<T, Allocator>& c, Predicate pred);
|
| 29 |
+
|
| 30 |
+
namespace pmr {
|
| 31 |
+
template<class T>
|
| 32 |
+
using hive = std::hive<T, polymorphic_allocator<T>>;
|
| 33 |
+
}
|
| 34 |
+
}
|
| 35 |
+
```
|
| 36 |
+
|