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

Concept for random number engines compatible with std distributions. More...

#include <random.hpp>

Concept definition

template<typename T>
concept RandomEngine = requires(T&& engine) {
typename std::remove_cvref_t<T>::result_type;
{ engine() } -> std::convertible_to<typename T::result_type>;
{
std::remove_cvref_t<T>::min()
} -> std::convertible_to<typename std::remove_cvref_t<T>::result_type>;
{
std::remove_cvref_t<T>::max()
} -> std::convertible_to<typename std::remove_cvref_t<T>::result_type>;
}
Concept for random number engines compatible with std distributions.
Definition random.hpp:20

Detailed Description

Concept for random number engines compatible with std distributions.

Requires presence of result_type, operator(), and min()/max() members.

Definition at line 20 of file random.hpp.