std::seed_seq::size (3) - Linux Manuals
std::seed_seq::size: std::seed_seq::size
Command to display std::seed_seq::size
manual in Linux: $ man 3 std::seed_seq::size
NAME
std::seed_seq::size - std::seed_seq::size
Synopsis
std::size_t size() const; (since C++11)
(until C++17)
std::size_t size() const noexcept; (since C++17)
Returns the size of the stored initial seed sequence.
Parameters
(none)
Return value
The size of the private container that was populated at construction time.
Complexity
Constant time.
Example
// Run this code
#include <random>
#include <iostream>
int main()
{
std::seed_seq s1 = {-1, 0, 1};
std::cout << s1.size() << '\n';
}
Output:
3
Pages related to std::seed_seq::size
- std::seed_seq::seed_seq (3) - std::seed_seq::seed_seq
- std::seed_seq::generate (3) - std::seed_seq::generate
- std::seed_seq::param (3) - std::seed_seq::param
- std::seed_seq (3) - std::seed_seq
- std::search (3) - std::search
- std::search_n (3) - std::search_n
- std::set (3) - std::set
- std::set<Key,Compare,Allocator>::begin,std::set<Key,Compare,Allocator>::cbegin (3) - std::set<Key,Compare,Allocator>::begin,std::set<Key,Compare,Allocator>::cbegin
- std::set<Key,Compare,Allocator>::clear (3) - std::set<Key,Compare,Allocator>::clear
- std::set<Key,Compare,Allocator>::contains (3) - std::set<Key,Compare,Allocator>::contains
- std::set<Key,Compare,Allocator>::count (3) - std::set<Key,Compare,Allocator>::count