std::hive<T,Allocator>::block_capacity_hard_limits
static constexpr std::hive_limits block_capacity_hard_limits() noexcept; | (since C++26) |
Returns implementation defined block capacity hard limits.
Return value
An object of type std::hive_limits.
Complexity
Constant.
Example
#include <hive>
#include <iostream>
int main()
{
constexpr auto limits{std::hive<int>::block_capacity_hard_limits()};
std::cout << limits.min << ' ' << limits.max << '\n';
}
Possible output:
3 255
See also
| returns the number of elements that can be held in currently allocated storage (public member function) |
|
| reserves storage (public member function) |
|
| reduces memory usage by freeing unused memory (public member function) |
|
| deallocates reserved blocks and reduces capacity accordingly (public member function) |
|
| returns current block capacity limits (public member function) |
|
|
[static] | returns block capacity default limits (public static member function) |
|
[static] | checks if given capacity hard limits are met (public static member function) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/cpp/container/hive/block_capacity_hard_limits