mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2024-12-25 21:35:41 +00:00
23 lines
570 B
C++
23 lines
570 B
C++
|
#ifndef SPROUT_RANDOM_DETAIL_GENERATOR_BITS_HPP
|
||
|
#define SPROUT_RANDOM_DETAIL_GENERATOR_BITS_HPP
|
||
|
|
||
|
#include <cstddef>
|
||
|
#include <limits>
|
||
|
#include <sprout/config.hpp>
|
||
|
|
||
|
namespace sprout {
|
||
|
namespace random {
|
||
|
namespace detail {
|
||
|
template<typename URNG>
|
||
|
struct generator_bits {
|
||
|
public:
|
||
|
static SPROUT_CONSTEXPR std::size_t value() {
|
||
|
return std::numeric_limits<typename URNG::result_type>::digits;
|
||
|
}
|
||
|
};
|
||
|
} // namespace detail
|
||
|
} // namespace random
|
||
|
} // namespace sprout
|
||
|
|
||
|
#endif // #ifndef SPROUT_RANDOM_DETAIL_GENERATOR_BITS_HPP
|