std::discar...engine::seed(3)
β¨ std::discard_block_engine::seed β¨
Okay bestie, welcome to the glow-up era of your engine π
This is std::discard_block_engine::seed from the C++ Standard Library β like, the whole page, no skips, no cap.
πΈ Synopsis πΈ
void seed(); (1) (since C++11)
void seed( result_type value ); (2) (since C++11)
template< class Sseq > (3) (since C++11)
void seed( Sseq& seq );
So what's the vibe? This function reinitializes the internal state of the underlying engine using a brand-new seed value π₯ That's the whole assignment, and it ate, honestly.
- Seeds the underlying engine with the default seed value. Effectively calls
e.seed(), whereeis the underlying engine. The no-argument glow-up β¨ - Seeds the underlying engine with the seed value
s. Effectively callse.seed(value), whereeis the underlying engine. You hand it a value, it hands it down. Teamwork π«Ά - Seeds the underlying engine with the seed sequence
seq. Effectively callse.seed(seq), whereeis the underlying engine.
Okay so this third one has rules, and they matter, so listen up π This template only participates in overload resolution ifSseqqualifies as aSeedSequence. In particular, this template does not participate in overload resolution ifSseqis implicitly convertible toresult_type. That's the fine print, bestie β it's not me being dramatic, it's literally the spec π
π¦ Parameters π¦
valueβ seed value to use in the initialization of the internal state of the underlying engine. Your starter number, your little spark πseqβ seed sequence to use in the initialization of the internal state of the underlying engine. The fancy multi-part seed situation π
π Return value π
(none)
Nothing. Zero. It returns vibes only π
π Exceptions π
Throws nothing. A calm, drama-free, peaceful function. We love a low-maintenance icon π No try/catch needed, she's not gonna do that to you.
β that's the whole page, you understood it, main character energy β
This little gem comes to you courtesy of cppreference.com, dated 2024.06.10 β mwah, thanks for the docs, iykyk πππΈ
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms