1 /* boost random/shuffle_output.hpp header file
3 * Copyright Jens Maurer 2000-2001
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)
8 * See http://www.boost.org for most recent version including documentation.
10 * $Id: shuffle_output.hpp 71018 2011-04-05 21:27:52Z steven_watanabe $
13 * 2001-02-18 moved to individual header files
16 #ifndef BOOST_RANDOM_SHUFFLE_OUTPUT_HPP
17 #define BOOST_RANDOM_SHUFFLE_OUTPUT_HPP
19 #include <boost/random/shuffle_order.hpp>
26 template<typename URNG, int k,
27 typename URNG::result_type val = 0>
28 class shuffle_output : public shuffle_order_engine<URNG, k>
30 typedef shuffle_order_engine<URNG, k> base_t;
31 typedef typename base_t::result_type result_type;
35 shuffle_output(T& arg) : base_t(arg) {}
37 shuffle_output(const T& arg) : base_t(arg) {}
39 shuffle_output(It& first, It last) : base_t(first, last) {}
40 result_type min BOOST_PREVENT_MACRO_SUBSTITUTION ()
41 { return (this->base().min)(); }
42 result_type max BOOST_PREVENT_MACRO_SUBSTITUTION ()
43 { return (this->base().max)(); }
51 #endif // BOOST_RANDOM_SHUFFLE_OUTPUT_HPP