41 #ifdef PB_DS_CLASS_C_DEC
45 hash_exponential_size_policy(size_type start_size, size_type grow_factor) :
46 m_start_size(start_size),
47 m_grow_factor(grow_factor)
53 swap(PB_DS_CLASS_C_DEC& other)
55 std::swap(m_start_size, other.m_start_size);
56 std::swap(m_grow_factor, other.m_grow_factor);
60 typename PB_DS_CLASS_C_DEC::size_type
62 get_nearest_larger_size(size_type size)
const
64 size_type ret = m_start_size;
67 const size_type next_ret = ret* m_grow_factor;
69 __throw_insert_error();
76 typename PB_DS_CLASS_C_DEC::size_type
78 get_nearest_smaller_size(size_type size)
const
80 size_type ret = m_start_size;
83 const size_type next_ret = ret* m_grow_factor;
85 __throw_resize_error();
void swap(any &__x, any &__y) noexcept
Exchange the states of two any objects.