Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/random/detail/generator_bits.hpp @ 133:4acb5d8d80b6 tip
Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author | Chris Cannam |
---|---|
date | Tue, 30 Jul 2019 12:25:44 +0100 |
parents | c530137014c0 |
children |
rev | line source |
---|---|
Chris@16 | 1 /* boost random/detail/generator_bits.hpp header file |
Chris@16 | 2 * |
Chris@16 | 3 * Copyright Steven Watanabe 2011 |
Chris@16 | 4 * Distributed under the Boost Software License, Version 1.0. (See |
Chris@16 | 5 * accompanying file LICENSE_1_0.txt or copy at |
Chris@16 | 6 * http://www.boost.org/LICENSE_1_0.txt) |
Chris@16 | 7 * |
Chris@16 | 8 * See http://www.boost.org for most recent version including documentation. |
Chris@16 | 9 * |
Chris@101 | 10 * $Id$ |
Chris@16 | 11 * |
Chris@16 | 12 */ |
Chris@16 | 13 |
Chris@16 | 14 #ifndef BOOST_RANDOM_DETAIL_GENERATOR_BITS_HPP |
Chris@16 | 15 #define BOOST_RANDOM_DETAIL_GENERATOR_BITS_HPP |
Chris@16 | 16 |
Chris@16 | 17 #include <boost/limits.hpp> |
Chris@16 | 18 |
Chris@16 | 19 namespace boost { |
Chris@16 | 20 namespace random { |
Chris@16 | 21 namespace detail { |
Chris@16 | 22 |
Chris@16 | 23 // This is a temporary measure that retains backwards |
Chris@16 | 24 // compatibility. |
Chris@16 | 25 template<class URNG> |
Chris@16 | 26 struct generator_bits { |
Chris@16 | 27 static std::size_t value() { |
Chris@16 | 28 return std::numeric_limits<typename URNG::result_type>::digits; |
Chris@16 | 29 } |
Chris@16 | 30 }; |
Chris@16 | 31 |
Chris@16 | 32 } // namespace detail |
Chris@16 | 33 } // namespace random |
Chris@16 | 34 } // namespace boost |
Chris@16 | 35 |
Chris@16 | 36 #endif // BOOST_RANDOM_DETAIL_GENERATOR_BITS_HPP |