std::indepe...:operator()(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

πŸ’– NAME

std::independent_bits_engine::operator() β€” std::independent_bits_engine::operator()

okay so this is the std::indepe...:operator()(3) page from the C++ Standard Libary manual, and we’re talking about the call operator for std::independent_bits_engine. yes bestie, the same name twice, it’s giving iconic symmetry πŸ’….


✨ Synopsis

result_type operator()();  (since C++11)

this cutie has been around since C++11 πŸŽ€.

πŸ¦‹ DESCRIPTION-ish energy (the prose under Synopsis)

It generates a random value. The state of the underlying engine is advanced one or more times. periodt β€” that’s the whole vibe πŸ”₯.

πŸŽ€ Parameters

(none) β€” not a single argument, zero params, nothing to pass in, we love a low-maintenance icon 🫢.

🌸 Return value

A pseudo-random number in [min(), max()] ✨. That range is literally right there, keep it exact.

πŸ’œ Exceptions

Throws nothing. Not one exception. The no-throw lifestyle is real 😌.

🌈 See also

  • discard β€” advances the adaptor’s state by a specified amount (C++11) (public member function) πŸ‘‘

source/version and date from the footer: http://cppreference.com, 2024.06.10, and page std::indepe...:operator()(3) β€” bye bestie, slay responsibly πŸ§šπŸ’–

πŸ“¦ where this page comes from