Files
cppdraft_translate/cppdraft/hive/syn.md
2025-10-25 03:02:53 +03:00

15 lines
1.4 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[hive.syn]
# 23 Containers library [[containers]](./#containers)
## 23.3 Sequence containers [[sequences]](sequences#hive.syn)
### 23.3.8 Header <hive> synopsis [hive.syn]
[🔗](#header:%3chive%3e)
#include <initializer_list> // see [[initializer.list.syn]](initializer.list.syn "17.11.2Header <initializer_­list> synopsis")#include <compare> // see [[compare.syn]](compare.syn "17.12.1Header <compare> synopsis")namespace std {struct [hive_limits](#lib:hive_limits "23.3.8Header <hive> synopsis[hive.syn]") { size_t [min](#lib:hive_limits,min "23.3.8Header <hive> synopsis[hive.syn]");
size_t [max](#lib:hive_limits,max "23.3.8Header <hive> synopsis[hive.syn]"); constexpr hive_limits(size_t minimum, size_t maximum) noexcept: min(minimum), max(maximum) {}}; // [[hive]](hive "23.3.9Class template hive"), class template hivetemplate<class T, class Allocator = allocator<T>> class hive; template<class T, class Allocator>void swap(hive<T, Allocator>& x, hive<T, Allocator>& y)noexcept(noexcept(x.swap(y))); template<class T, class Allocator, class U = T>typename hive<T, Allocator>::size_type
erase(hive<T, Allocator>& c, const U& value); template<class T, class Allocator, class Predicate>typename hive<T, Allocator>::size_type
erase_if(hive<T, Allocator>& c, Predicate pred); namespace pmr {template<class T>using hive = std::hive<T, polymorphic_allocator<T>>; }}