Rosetta
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Namespaces | Functions
minmax.hh File Reference
#include <vector>
#include <utility/vector1.hh>

Go to the source code of this file.

Namespaces

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

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)

Definition in file minmax.hh.