blob: 94d49d6daf4d880945c46a3c96db852326c15a36 [file] [log] [blame]
Jeff Thompson86b6d642013-10-17 15:01:56 -07001/* 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: generator_bits.hpp 72951 2011-07-07 04:57:37Z steven_watanabe $
11 *
12 */
13
14#ifndef NDNBOOST_RANDOM_DETAIL_GENERATOR_BITS_HPP
15#define NDNBOOST_RANDOM_DETAIL_GENERATOR_BITS_HPP
16
17#include <ndnboost/limits.hpp>
18
19namespace ndnboost {
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 ndnboost
35
36#endif // NDNBOOST_RANDOM_DETAIL_GENERATOR_BITS_HPP