public member function
<random>
std::seed_seq::sizeReturn internal sequence size
Returns the number of elements in the object's internal sequence.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;
}
size: 3 elements: 102 406 7892
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4