libstdc++
std::uniform_random_bit_generator Concept Reference

#include <uniform_int_dist.h>

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;
}
integral_constant< bool, __v > bool_constant
Alias template for compile-time boolean constant types.
Definition: type_traits:98
[concept.same], concept same_as
Definition: concepts:63
[concept.invocable], concept invocable
Definition: concepts:336
Requirements for a uniform random bit generator.

Detailed Description

Requirements for a uniform random bit generator.

Definition at line 48 of file uniform_int_dist.h.