std::independent_bits_engine
From cppreference.com
C++
Feature test macros (C++20)
Concepts library (C++20)
Metaprogramming library (C++11)
Ranges library (C++20)
Filesystem library (C++17)
Concurrency support library (C++11)
Execution control library (C++26)
Numerics library
Mathematical special functions (C++17)
Mathematical constants (C++20)
Basic linear algebra algorithms (C++26)
Data-parallel types (SIMD) (C++26)
Floating-point environment (C++11)
Bit manipulation (C++20)
Saturation arithmetic (C++26)
(C++17)
(C++17)
(C++17)
(C++17)
(C++17)
(C++17)
Pseudo-random number generation
(C++20)
(C++11)
(C++11)
(C++11)
(C++26)
(C++11)
independent_bits_engine
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++26)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
std::independent_bits_engine
Member functions
Generation
Characteristics
Non-member functions
(C++11)(C++11)(until C++20)
(C++11)(C++11)
Defined in header
<random>
template<
(since C++11)
class Engine,
std::size_t W,
class UIntType
independent_bits_engine
is a random number engine adaptor that produces random numbers with different number of bits than that of the wrapped engine.
Contents
[edit] Template parameters
Engine
-
the type of the wrapped engine
W
-
the number of bits the generated numbers should have
UIntType
-
the type of the generated random numbers. The effect is undefined unless the parameter is cv-unqualified and is one of unsigned short, unsigned int, unsigned long, or unsigned long long.
Type requirements
-
Engine
must meet the requirements of RandomNumberEngine.
-
W
must be greater than zero, and no greater than std::numeric_limits <UIntType>::digits.
[edit] Member types
Member type
Definition
result_type
(C++11)
UIntType
[edit] Member functions
Generation
(C++11)
(public member function) [edit]
Characteristics
[static] (C++11)
(public static member function) [edit]
[static] (C++11)
- 1).
(public static member function) [edit]
[edit] Non-member functions
(C++11)(C++11)(removed in C++20)
(function) [edit]
[edit] Example
This section is incomplete
Reason: no example
Reason: no example