carta
__gnu_pbds::direct_mod_range_hashing(3cxx)

__gnu_pbds::direct_mod_range_hashing3cxx

A mod range-hashing class (uses the modulo function).

Usage

Inherits __gnu_pbds::detail::mod_based_range_hashing< Size_Type >.

Public Types

typedef Size_Type size_type

Public Member Functions

void swap (direct_mod_range_hashing< Size_Type > &other)

Protected Member Functions

void notify_resized (size_type size)

size_type operator() (size_type hash) const

Transforms the __hash value hash into a ranged-hash value (using a modulo operation). size_type range_hash (size_type s) const

void swap (mod_based_range_hashing &other)

Detailed Description

template<typename Size_Type = std::size_t>

class __gnu_pbds::direct_mod_range_hashing< Size_Type >"A mod range-hashing class (uses the modulo function).

Member Function Documentation

template<typename Size_Type = std::size_t> size_type __gnu_pbds::direct_mod_range_hashing< Size_Type >::operator() (size_type hash) const [inline], [protected]

Transforms the __hash value hash into a ranged-hash value (using a modulo operation).

History

  • Debian 13 (Trixie): the text shown here
  • Debian 12 (Bookworm)
  • Debian 11 (Bullseye)
  • Debian 10 (Buster)
  • Debian 9 (Stretch)
  • Debian 8 (Jessie)
  • Debian 7 (Wheezy)

Author

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

From libstdc++-12-doc 12.4.0-5 in Debian 13 (Trixie). Also shipped by libstdc++-13-doc, libstdc++-14-doc. Parsed by carta from the page's man source.