33 #ifndef SHARK_ALGORITHMS_DIRECT_SEARCH_OPERATORS_SELECTION_TOURNAMENT_SELECTION_H 34 #define SHARK_ALGORITHMS_DIRECT_SEARCH_OPERATORS_SELECTION_TOURNAMENT_SELECTION_H 49 template<
class Predicate>
55 template<
typename IteratorType1,
typename IteratorType2>
57 random::rng_type& rng,
63 for(; outIt != outItE; ++outIt ) {
64 *outIt = *(*this)(rng, inIt,inItE);
72 template<
typename Iterator>
73 Iterator
operator()(random::rng_type& rng, Iterator it, Iterator itE)
const 75 std::size_t n = std::distance( it, itE );
83 if( predicate(*itt, *result) ){