libstdc++: std::uniform_random_bit_generator Concept Reference

libstdc++

std::uniform_random_bit_generator Concept Reference
Numerics » Random Number Generation » Random Number Distributions » Uniform Distributions

`#include <random>`

## Concept definition

template<typename _Gen>
concept std::uniform_random_bit_generator = invocable<_Gen&> && unsigned_integral<invoke_result_t<_Gen&>>
&& requires
{
{ _Gen::min() } -> same_as<invoke_result_t<_Gen&>>;
{ _Gen::max() } -> same_as<invoke_result_t<_Gen&>>;
requires bool_constant<(_Gen::min() < _Gen::max())>::value;
}
std::same_as
[concept.same], concept same_as
Definition concepts:65
std::invocable
[concept.invocable], concept invocable
Definition concepts:383
std::uniform_random_bit_generator
Requirements for a uniform random bit generator.
Definition uniform_int_dist.h:54

## Detailed Description

Requirements for a uniform random bit generator.

Since
  C++20

Definition at line 53 of file uniform_int_dist.h.