STD::BERNOULLI_DISTRIBUTION::PARAM_TYPE(3)

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

✨ std::bernoulli_distribution::param_type ✨

okay bestie, gather round πŸ’– this is a page from the libstdc++ manual β€” you know, the C++ standard library that ships with GCC? β€” and it's all about one little nested type inside std::bernoulli_distribution. it lives in <random>, it's the parameter bundle for a Bernoulli distribution, and honestly? it's giving supporting-character-who-steals-the-scene. 🌸


πŸŽ€ NAME πŸŽ€

std::bernoulli_distribution::param_type β€” the parameter type πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <random>

🌈 Public Types 🌈

  • typedef bernoulli_distribution distribution_type β€” yes queen, the distribution type is literally bernoulli_distribution. that's the whole flex. ✨

πŸ’– Public Member Functions πŸ’–

  • param_type(double __p) β€” builds a fresh parameter object out of a probability __p. πŸ“
  • double p() const β€” hands you back the probability. read-only, no drama. πŸ‘‘

🫢 Friends 🫢

  • bool operator==(const param_type &__p1, const param_type &__p2) β€” because sometimes you gotta ask: are these two parameter packs the same parameter pack? fr fr. 😭

🌟 Detailed Description 🌟

Parameter type.

that's it. that's the description. short, sweet, main character energy in four syllables. it's the type that carries the parameters around so your distribution knows what to do. πŸ’…


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for libstdc++ from the source code. not me getting written by a doc generator instead of a human β€” iconic behaviour honestly. πŸ€–βœ¨


heads up bestie: every last detail above is verbatim from the page, so don't go adding options that aren't there. this type is exactly as small as it looks. πŸŽ€

okay bye ily, this page came straight out of the libstdc++ Library Functions Manual, auto-generated by Doxygen from the source code, with the man page itself titled std::berno...:param_type(3) (yes, truncated like that, no notes πŸ’€). go forth and distribute your Bernoullis. πŸ¦‹πŸ’–βœ¨

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