43 hash_exponential_size_policy(size_type start_size, size_type grow_factor) :
44 m_start_size(start_size),
45 m_grow_factor(grow_factor)
51 swap(PB_DS_CLASS_C_DEC& other)
53 std::swap(m_start_size, other.m_start_size);
54 std::swap(m_grow_factor, other.m_grow_factor);
58 typename PB_DS_CLASS_C_DEC::size_type
60 get_nearest_larger_size(size_type
size)
const
62 size_type ret = m_start_size;
65 const size_type next_ret = ret* m_grow_factor;
67 __throw_insert_error();
74 typename PB_DS_CLASS_C_DEC::size_type
76 get_nearest_smaller_size(size_type size)
const
78 size_type ret = m_start_size;
81 const size_type next_ret = ret* m_grow_factor;
83 __throw_resize_error();
constexpr size_t size() const _GLIBCXX_NOEXCEPT
Returns the total number of bits.