1/* boost random/detail/generator_bits.hpp header file
2 *
3 * Copyright Steven Watanabe 2011
4 * Distributed under the Boost Software License, Version 1.0. (See
5 * accompanying file LICENSE_1_0.txt or copy at
6 * http://www.boost.org/LICENSE_1_0.txt)
7 *
8 * See http://www.boost.org for most recent version including documentation.
9 *
10 * $Id$
11 *
12 */
13
14#ifndef BOOST_RANDOM_DETAIL_GENERATOR_BITS_HPP
15#define BOOST_RANDOM_DETAIL_GENERATOR_BITS_HPP
16
17#include <boost/limits.hpp>
18
19namespace boost {
20namespace random {
21namespace detail {
22
23// This is a temporary measure that retains backwards
24// compatibility.
25template<class URNG>
26struct generator_bits {
27 static std::size_t value() {
28 return std::numeric_limits<typename URNG::result_type>::digits;
29 }
30};
31
32} // namespace detail
33} // namespace random
34} // namespace boost
35
36#endif // BOOST_RANDOM_DETAIL_GENERATOR_BITS_HPP
37