84template<
class T ,
class C = std::less<> >
85std::size_t
argmin(
const std::vector< T > & A , std::size_t start ,
86 std::size_t end , C less = C() );
91template< std::ranges::random_access_range R ,
class C = std::less<> >
92 requires( ! std::is_same_v< std::remove_cvref_t< R > ,
93 std::vector< std::ranges::range_value_t< R > > > )
94std::size_t
argmin(
const R & A , std::size_t start , std::size_t end ,
107template<
class T ,
class C = std::less<> >
108const T &
min(
const std::vector< T > & A , C less = C() );
138template<
class T ,
class C = std::less<> >
139std::pair< T , T >
minMax(
const std::vector< T > & A , C less = C() );
163template<
class T ,
class C = std::less<> >
164std::pair< T , T >
minMaxDivide(
const std::vector< T > & A , C less = C() );
174#include "ADS/search/impl/Minimum.tpp"
The contracts of ADS: the preconditions, the postconditions and the invariants of the operations,...
The checks of the contracts of the sorts [see Contract.h]: a copy of the input kept only when the aud...
const T & min(const std::vector< T > &A, C less=C())
the minimum of a vector that is not empty, comparisons
std::pair< T, T > minMaxDivide(const std::vector< T > &A, C less=C())
the pair of minMax() by divide et impera: the halves solved recursively and their minima and maxima c...
std::size_t argmin(const std::vector< T > &A, std::size_t start, std::size_t end, C less=C())
the place of the first minimum of the range
std::pair< T, T > minMax(const std::vector< T > &A, C less=C())
the minimum and the maximum together, by pairs: the two items of a pair are compared,...