std::discar...block_engine(3)
π¦ std::discard_block_engine::discard_block_engine π¦
okay bestie, welcome to the C++ Standard Libary manual β section 3, no cap. The page header is literally std::discar...block_engine(3) (yes, with the lil truncated vibe, iykyk), and we're talking about the constructor of std::discard_block_engine::discard_block_engine. It's giving βengine adaptor origin storyβ and I'm obsessed. π
πΈ NAME πΈ
std::discard_block_engine::discard_block_engine β std::discard_block_engine::discard_block_engine
β¨ Synopsis β¨
discard_block_engine(); (1) (since C++11)
explicit discard_block_engine( result_type s ); (2) (since C++11)
template< class Sseq > (3) (since C++11)
explicit discard_block_engine( Sseq& seq );
explicit discard_block_engine( const Engine& e ); (4) (since C++11)
explicit discard_block_engine( Engine&& e ); (5) (since C++11)
Constructs new pseudo-random engine adaptor. periodt. π«Ά
- Default constructor. The underlying engine is also default-constructed. iconic default behavior, ngl. β¨
- Constructs the underlying engine with
s. slay. π - Constructs the underlying engine with seed sequence
seq. This constructor only participates in overload resolution ifSseqqualifies as aSeedSequence. In particular, this constructor does not participate in overload resolution ifSseqis implicitly convertible toresult_type. read that twice, bestie β it's the main character caveat. π¨ - Constructs the underlying engine with a copy of
e. copy-paste but make it engine. π - Move-constructs the underlying engine with
e.eholds unspecified, but valid state afterwards. so it's still alive, just lowkey not the same vibe anymore. π
π Parameters π
sβ integer value to construct the underlying engine with. a whole number, doing engine stuff. π’seqβ seed sequence to construct the underlying engine with. seed-sequence energy fr fr. π±eβ pseudo-random number engine to initialize with. the engine being copied or moved into the situation. π₯
π Example π
this page doesn't actually show an example block, bestie β it just goes straight to the footer vibe. no cap, that's the whole content. π
okay that's the page, bestie β source/version is http://cppreference.com, date is 2024.06.10, and the std::discar...block_engine(3) footer energy is officially wrapped. mwah, go construct something cute. ππ¦
π¦ 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