__gnu_pbds...ge_hashing(3)

๐Ÿ“ฆ
version 16.2.1+r23+gd564253eb6c8 ยท 6 versions
, in arch rolling, fedora 44

๐Ÿ’– __gnu_pbds::sample_range_hashing ๐Ÿ’–

okay bestie, welcome to the Library Functions Manual โœจ this one is a lil page from libstdc++, and it's all about a sample range-hashing functor named __gnu_pbds::sample_range_hashing. yes it's a mouthful. yes it's iconic. let's get into it ๐Ÿซถ


๐ŸŒธ NAME ๐ŸŒธ

__gnu_pbds::sample_range_hashing โ€” a sample range-hashing functor, fr fr ๐Ÿ’…


๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

#include <sample_range_hashing.hpp>

โญ Public Types โญ

  • typedef std::size_t size_type โ€” the size type. that's it, that's the whole vibe โœจ

๐ŸŽ€ Public Member Functions ๐ŸŽ€

  • sample_range_hashing () โ€” default constructor ๐ŸŒท
  • sample_range_hashing (const sample_range_hashing &other) โ€” copy constructor, she copies ๐Ÿ‘ฏ
  • void swap (sample_range_hashing &other) โ€” swaps content ๐Ÿ”„

๐Ÿ’œ Protected Member Functions ๐Ÿ’œ

  • void notify_resized (size_type) โ€” notifies the policy object that the container's size has changed to the argument's size ๐Ÿ“
  • size_type operator() (size_type) const โ€” transforms the __hash value hash into a ranged-hash value ๐Ÿ”ฎ

๐ŸŒˆ Detailed Description ๐ŸŒˆ

A sample range-hashing functor. literally just that, no cap ๐Ÿ’€


๐Ÿ‘‘ Member Typedef Documentation ๐Ÿ‘‘

typedef std::size_t __gnu_pbds::sample_range_hashing::size_type

Size type. that's the tea โ˜•


๐Ÿงš Constructor & Destructor Documentation ๐Ÿงš

__gnu_pbds::sample_range_hashing::sample_range_hashing ()

Default constructor ๐Ÿ’–

Referenced by sample_range_hashing(), and swap().

__gnu_pbds::sample_range_hashing::sample_range_hashing (const sample_range_hashing & other)

Copy constructor ๐Ÿ‘ฏโ™€๏ธ

References sample_range_hashing().

๐Ÿ’… Member Function Documentation ๐Ÿ’…

void __gnu_pbds::sample_range_hashing::notify_resized (size_type )

[protected]

Notifies the policy object that the container's size has changed to argument's size ๐Ÿ“

size_type __gnu_pbds::sample_range_hashing::operator() (size_type ) const

[inline], [protected]

Transforms the __hash value hash into a ranged-hash value ๐Ÿ”ฎโœจ

void __gnu_pbds::sample_range_hashing::swap (sample_range_hashing & other)

[inline]

Swaps content ๐Ÿ”„

References sample_range_hashing().

๐Ÿ“ Author ๐Ÿ“

Generated automatically by Doxygen for libstdc++ from the source code. not me being auto-generated bestie, she's self-made but also machine-made ๐Ÿ˜ญ


and that's the whole page!! tysm for reading, mwah ๐Ÿซถ๐Ÿ’– this lil manual came from libstdc++ (that's the source + version, girlypop) and it's dated to match the __gnu_pbds...ge_hashing(3) page you were reading โ€” go off, range-hash queen ๐Ÿ‘‘โœจ๐Ÿ’…

๐Ÿ“ฆ where this page comes from
  • arch rolling: gcc 16.2.1+r23+gd564253eb6c8-1 ยท GPL-3.0-or-later WITH GCC-exception-3.1 AND GFDL-1.3-or-later
  • fedora 44: libstdc++-docs 16.0.1-0.10.fc44 ยท GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
  • fedora 44: libstdc++-docs 16.2.1-2.fc44
  • fedora 44: libstdc++-docs 16.2.1-3.fc44 ยท GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
  • ๐Ÿ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms