1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2024-11-12 21:09:01 +00:00
Sprout/sprout/random/detail/generator_bits.hpp

23 lines
584 B
C++
Raw Normal View History

2011-10-04 13:00:08 +00:00
#ifndef SPROUT_RANDOM_DETAIL_GENERATOR_BITS_HPP
#define SPROUT_RANDOM_DETAIL_GENERATOR_BITS_HPP
#include <cstddef>
#include <sprout/config.hpp>
2013-08-06 15:15:09 +00:00
#include <sprout/limits.hpp>
2011-10-04 13:00:08 +00:00
namespace sprout {
namespace random {
namespace detail {
template<typename URNG>
struct generator_bits {
public:
static SPROUT_CONSTEXPR std::size_t value() {
2013-08-06 15:15:09 +00:00
return sprout::numeric_limits<typename URNG::result_type>::digits;
2011-10-04 13:00:08 +00:00
}
};
} // namespace detail
} // namespace random
} // namespace sprout
2013-03-22 05:24:19 +00:00
#endif // #ifndef SPROUT_RANDOM_DETAIL_GENERATOR_BITS_HPP