STD::UNIFORM_INT_DISTRIBUTION::PARAM_TYPE(3)

πŸ“¦
version 16.2.1+r23+gd564253eb6c8 Β· 4 versions
, in arch rolling, fedora 44

πŸ’– NAME πŸ’–

std::uniform_int_distribution< _IntType >::param_type β€” bestie, this is the parameter-type glow-up for your uniform int distribution, and yes she's living in the std:: namespace like the queen she is πŸ‘‘


✨ SYNOPSIS ✨

#include <random>

🌸 Public Types 🌸

okay so first thing, she has a whole typedef moment:

  • typedef uniform_int_distribution< _IntType > distribution_type β€” literally just the distribution type she belongs to, iykyk

πŸŽ€ Public Member Functions πŸŽ€

these are the girlies doing the actual work:

  • param_type (_IntType __a, _IntType __b=__gnu_cxx::__int_traits< _IntType >::__max) β€” the constructor!! you hand her __a, and __b is optional, defaulting to __gnu_cxx::__int_traits< _IntType >::__max. no cap, that default is doing a lot of heavy lifting πŸ’…
  • result_type a () const β€” gives you a back. that's it. that's the vibe πŸ¦‹
  • result_type b () const β€” gives you b back. iconic behaviour honestly

πŸ‘‘ Friends πŸ‘‘

the friend functions, they're not members but they're in the group chat:

  • bool operator!= (const param_type &__p1, const param_type &__p2) β€” are these two param_types not the same? tell me rn
  • bool operator== (const param_type &__p1, const param_type &__p2) β€” are they the same? also tell me rn

πŸ”₯ Detailed Description πŸ”₯

okay so, template time:

template<typename _IntType = int>
struct std::uniform_int_distribution< _IntType >::param_type

"Parameter type." β€” yes bestie that's literally the entire description, she said what she said and she ate πŸ’€

she's a nested struct inside std::uniform_int_distribution< _IntType >, and _IntType defaults to int. main character energy fr fr 🌈


πŸ’œ Author πŸ’œ

Generated automatically by Doxygen for libstdc++ from the source code. β€” so like, not a human, a robot wrote this, and honestly? she understood the assignment πŸ€–βœ¨


and that's the whole page bestie!! this came out of libstdc++ and she's filed under std::unifo...:param_type(3) in the manual, so if you need her again you know exactly where to look 🫢 go forth and distribute your ints uniformly, periodt πŸ’–πŸŒΈπŸŽ€

πŸ“¦ 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