|
||||
File indexing completed on 2025-01-18 09:51:09
0001 /* boost random/detail/generator_bits.hpp header file 0002 * 0003 * Copyright Steven Watanabe 2011 0004 * Distributed under the Boost Software License, Version 1.0. (See 0005 * accompanying file LICENSE_1_0.txt or copy at 0006 * http://www.boost.org/LICENSE_1_0.txt) 0007 * 0008 * See http://www.boost.org for most recent version including documentation. 0009 * 0010 * $Id$ 0011 * 0012 */ 0013 0014 #ifndef BOOST_RANDOM_DETAIL_GENERATOR_BITS_HPP 0015 #define BOOST_RANDOM_DETAIL_GENERATOR_BITS_HPP 0016 0017 #include <boost/limits.hpp> 0018 0019 namespace boost { 0020 namespace random { 0021 namespace detail { 0022 0023 // This is a temporary measure that retains backwards 0024 // compatibility. 0025 template<class URNG> 0026 struct generator_bits { 0027 static std::size_t value() { 0028 return std::numeric_limits<typename URNG::result_type>::digits; 0029 } 0030 }; 0031 0032 } // namespace detail 0033 } // namespace random 0034 } // namespace boost 0035 0036 #endif // BOOST_RANDOM_DETAIL_GENERATOR_BITS_HPP
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |