Defined in ranges.hpp.
This struct can be used to select a single random item from an input range. This can be extremely inefficient if the input range is large, because every item in the range prior to the randomly chosen one must be iterated through when get is called.
- Example
using rx::operator|;
p.source(0).max(10);
p.count();
Paths(WordGraph< Node > const &) -> Paths< Node >
enable_if_is_same< Return, Blocks > make(Container const &cont)
Check the arguments, construct a Blocks object, and check it.
Definition bipart.hpp:856
Random()=default
Default constructor.
|
| | Random ()=default |
| | Default constructor.
|
| | Random (Random &&)=default |
| | Default move constructor.
|
| | Random (Random const &)=default |
| | Default copy constructor.
|
| Random & | operator= (Random &&)=default |
| | Default move assignment operator.
|
| Random & | operator= (Random const &)=default |
| | Default copy assignment operator.
|
◆ Random() [1/3]
◆ Random() [2/3]
| Random |
( |
Random const & | | ) |
|
|
default |
Default copy constructor.
◆ Random() [3/3]
Default move constructor.
◆ operator=() [1/2]
Default move assignment operator.
◆ operator=() [2/2]
Default copy assignment operator.
The documentation for this struct was generated from the following file:
- /home/joseph/Dev/Comp_Maths/sandbox/libsemigroups/include/libsemigroups/ranges.hpp