std::experimental::ranges::UniformRandomNumberGenerator

From cppreference.com
< cpp‎ | experimental‎ | ranges
 
 
Technical specifications
Filesystem library (filesystem TS)
Library fundamentals (library fundamentals TS)
Library fundamentals 2 (library fundamentals 2 TS)
Extensions for parallelism (parallelism TS)
Extensions for concurrency (concurrency TS)
Concepts (concepts TS)
Ranges (ranges TS)
Special mathematical functions (special math TR)
 
 
Concepts library
Core language concepts
                              
Object concepts
                              
                              
Comparison concepts
Callable concepts
                                        
                              
URNG concept
UniformRandomNumberGenerator
 
Defined in header <experimental/ranges/random>
template <class G>

concept bool UniformRandomNumberGenerator() {
    return requires(G g) {
               { g() } -> ranges::UnsignedIntegral; /* not required to be equality preserving */
               { G::min() } -> ranges::Same<std::result_of_t<G&()>>;
               { G::max() } -> ranges::Same<std::result_of_t<G&()>>;
    };

}
(ranges TS)