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

__gnu_pbds::hash_prime_size_policy.3cxx

Author

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

                                                    libstdc++           __gnu_pbds::hash_prime_size_policy(3cxx)

Constructor & Destructor Documentation

__gnu_pbds::hash_prime_size_policy::hash_prime_size_policy(size_typestart_size=8)
       Default constructor, or onstructor taking a start_size The policy will use the sequence of sizes
       approximately start_size, start_size* 2, start_size* 2^2, ...

Detailed Description

       A size policy whose sequence of sizes form a nearly-exponential sequence of primes.

Member Typedef Documentation

typedefstd::size_t__gnu_pbds::hash_prime_size_policy::size_type
       Size type.

Name

       __gnu_pbds::hash_prime_size_policy - A size policy whose sequence of sizes form a nearly-exponential
       sequence of primes.

Synopsis

       #include <hash_policy.hpp>

   PublicTypes
       typedef std::size_t size_type
           Size type.

   PublicMemberFunctionshash_prime_size_policy (size_type start_size=8)
           Default constructor, or onstructor taking a start_size The policy will use the sequence of sizes
           approximately start_size, start_size* 2, start_size* 2^2, ...
       void swap (hash_prime_size_policy &other)

   ProtectedMemberFunctionssize_typeget_nearest_larger_size (size_type size) const
       size_typeget_nearest_smaller_size (size_type size) const

See Also