std::seed_seq::size

Returns the size of the underlying seed sequence.

# Declarations

std::size_t size() const noexcept;

(since C++11)

# Return value

v .size()

# Example

#include <iostream>
#include <random>
 
int main()
{
    std::seed_seq s1 = {-1, 0, 1};
    std::cout << s1.size() << '\n';
}