Sprout/sprout/random/detail/generator_bits.hpp

23 lines
570 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 <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
2013-03-22 05:24:19 +00:00
#endif // #ifndef SPROUT_RANDOM_DETAIL_GENERATOR_BITS_HPP