std::seed_seq::seed_seq (3) - Linux Manuals
std::seed_seq::seed_seq: std::seed_seq::seed_seq
NAME
std::seed_seq::seed_seq - std::seed_seq::seed_seq
Synopsis
seed_seq(); (1) (since C++11)
seed_seq( const seed_seq& ) = delete; (2) (since C++11)
template< class InputIt > (3) (since C++11)
seed_seq( InputIt begin, InputIt end );
template< class T > (4) (since C++11)
seed_seq( std::initializer_list<T> il );
1) The default constructor creates a std::seed_seq object with an initial seed sequence of length zero.
2) The copy constructor is deleted: std::seed_seq is not copyable.
3) Constructs a std::seed_seq with the initial seed sequence obtained by iterating over the range [begin, end) and copying the values obtained by dereferencing the iterator, modulo 232
(that is, the lower 32 bits are copied)
4) Equivalent to seed_seq(il.begin(), il.end()). This constructor enables list-initialization.
Parameters
begin, end - the initial seed sequence represented as a pair of input iterators whose std::iterator_traits<>::value_type is an integer type
il - std::initializer_list of objects of integer type, providing the initial seed sequence
Type requirements
-
InputIt must meet the requirements of LegacyInputIterator.
Exceptions
1) Does not throw
Example
// Run this code