Rosetta Utilities  2014.35
Namespaces | Functions
minmax.hh File Reference
#include <vector>
#include <utility/vector1.hh>

Namespaces

 utility
 unresizable vector whose size is known at compile time, which may be allocated on the stack, and which indexes from 1.
 

Functions

template<typename T >
int utility::argmin (const std::vector< T > &iterable)
 Returns the argument whose value is minimal according to operator<. More...
 
template<typename T >
int utility::argmin (const utility::vector1< T > &iterable)
 Returns the argument whose value is minimal according to operator<. More...
 
template<typename T >
int utility::argmax (const std::vector< T > &iterable)
 Returns the argument whose value is maximal according to operator>. More...
 
template<typename T >
int utility::argmax (const utility::vector1< T > &iterable)
 Returns the argument whose value is maximal according to operator>. More...
 

Detailed Description

Author
Christopher Miles (cmile.nosp@m.s@uw.nosp@m..edu)