public member function
<random>
Return internal sequence size
Returns the number of elements in the object's internal sequence.
Return Value
The number of elements in the container.
size_t is an unsigned integral type.
Example
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
// seed_seq::size
#include <iostream>
#include <random>
#include <iterator>
#include <array>
int main ()
{
std::seed_seq seed = {102,406,7892};
std::cout << "size: " << seed.size() << std::endl;
std::ostream_iterator<unsigned> out (std::cout," ");
std::cout << "elements: "; seed.param(out); std::cout << std::endl;
return 0;
}
|
Output:
size: 3
elements: 102 406 7892
|