std::seed_seq::size
From cppreference.com
std::size_t size() const
|
(since C++11) | |
Returns the size of the stored initial seed sequence.
Contents |
[edit] Parameters
(none)
[edit] Return value
The size of the private container that was populated at construction time.
[edit] Complexity
Constant time.
[edit] Example
#include <random> #include <iostream> int main() { std::seed_seq s1 = {-1, 0, 1}; std::cout << s1.size() << '\n'; }
Output:
3