trsl logo

random_permutation_iterator.hpp File Reference

#include <trsl/reorder_iterator.hpp>
#include <trsl/common.hpp>
#include <trsl/error_handling.hpp>

Go to the source code of this file.

Namespaces

namespace  trsl
 

Public namespace.


Functions

template<class ElementIterator >
reorder_iterator< ElementIterator > trsl::random_permutation_iterator (ElementIterator first, ElementIterator last, unsigned permutationSize)
 Constructs a reorder_iterator that will iterate through a random subset of size permutationSize of a random permutation of the population referenced by first and last.
template<class ElementIterator >
reorder_iterator< ElementIterator > trsl::random_permutation_iterator (ElementIterator first, ElementIterator last)
 Constructs a reorder_iterator that will iterate through a random permutation of the population referenced by first and last.

Detailed Description

Definition in file random_permutation_iterator.hpp.

© Copyright 2007-2011 Renaud Detry.
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at www.boost.org/LICENSE_1_0.txt.)
Revised Wed Apr 6 16:30:07 2011.
SourceForge.net Logo