Helios Engine
A modular ECS based data-oriented C++23 game engine framework
Loading...
Searching...
No Matches
helios::utils::Distribution Concept Reference

Concept for standard-like distributions. More...

#include <random.hpp>

Concept definition

template<typename T, typename Engine>
concept Distribution = requires(T&& dist, Engine engine) {
typename std::remove_cvref_t<T>::result_type;
{
dist(engine)
} -> std::convertible_to<typename std::remove_cvref_t<T>::result_type>;
}
Concept for standard-like distributions.
Definition random.hpp:36

Detailed Description

Concept for standard-like distributions.

Requires presence of result_type and callable operator(engine).

Definition at line 36 of file random.hpp.