min_index [MTL Home] Programmers Guide
  Contents | Index |  Search 


Category:algorithms Component type:function
Prototype
template<class Vec>
Vec::size_type min_index(const Vec& x) ;
Description
The location (index) of the element with the minimum value.
Definition
mtl.h
Requirements on types
  • Vec::value_type must be LessThanComparible.
Preconditions
Complexity
O(n)
Example
In min_abs_index.cc:

Notes
See also

[MTL Home] Copyright © 1998,1999 University of Notre Dame. All Rights Reserved.