logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

std::__detail::_Power2_rehash_policy - Rehash policy providing power of 2 bucket numbers. Avoids modulo

Author

       Generated automatically by Doxygen for libstdc++ from the source code.

libstdc++                                        Tue Jul 19 2022      std::__detail::_Power2_rehash_policy(3cxx)

Detailed Description

       Rehash policy providing power of 2 bucket numbers. Avoids modulo operations.

       Definition at line 522 of file hashtable_policy.h.

Name

       std::__detail::_Power2_rehash_policy - Rehash policy providing power of 2 bucket numbers. Avoids modulo
       operations.

Synopsis

PublicTypes
       using __has_load_factor = std::true_type
       typedef std::size_t _StatePublicMemberFunctions_Power2_rehash_policy (float __z=1.0) noexcept
       std::size_t _M_bkt_for_elements (std::size_t __n) const noexcept
       std::pair< bool, std::size_t > _M_need_rehash (std::size_t __n_bkt, std::size_t __n_elt, std::size_t
           __n_ins) noexcept
       std::size_t _M_next_bkt (std::size_t __n) noexcept
       void _M_reset () noexcept
       void _M_reset (_State __state) noexcept
       _State _M_state () const noexcept
       float max_load_factor () const noexcept

   PublicAttributes
       float _M_max_load_factor
       std::size_t _M_next_resizeStaticPublicAttributes
       static const std::size_t _S_growth_factor

See Also