Go to the documentation of this file.
9 #ifndef EAGINE_ANY_RANDOM_ENGINE_HPP
10 #define EAGINE_ANY_RANDOM_ENGINE_HPP
18 template <
typename Result>
25 template <
typename Engine>
29 , _max{engine.max()} {}
47 template <
typename Engine>
52 #endif // EAGINE_ANY_RANDOM_ENGINE_HPP
Declaration of class template storing a reference to a callable object.
Definition: callable_ref.hpp:24
any_random_engine(Engine &) -> any_random_engine< typename Engine::result_type >
Deduction guide for any_random_engine.
Common code is placed in this namespace.
Definition: eagine.hpp:21
Type-erasing reference for standard random engine types.
Definition: any_random_engine.hpp:19
Result result_type
Alias for the engine result type.
Definition: any_random_engine.hpp:22
any_random_engine(Engine &engine) noexcept
Constructor initializing reference to the actual engine.
Definition: any_random_engine.hpp:26
auto max() const noexcept -> result_type
The maximal result value.
Definition: any_random_engine.hpp:37
auto min() const noexcept -> result_type
The minimal result value.
Definition: any_random_engine.hpp:32