stlab.adobe.com Adobe Systems Incorporated

Functions

template<class T >
const T &() max (const T &a, const T &b)
template<class T >
T &() max (T &a, T &b)
template<class T , class Compare >
T &() max (T &a, T &b, Compare comp)
template<class T , class Compare >
const T &() max (const T &a, const T &b, Compare comp)
template<class ForwardIterator , class Compare >
ForwardIterator max_element (ForwardIterator first, ForwardIterator last, Compare comp)
template<class ForwardRange , class Compare >
boost::range_iterator
< ForwardRange >::type 
max_element (ForwardRange &range, Compare comp)
template<class ForwardRange , class Compare >
boost::range_const_iterator
< ForwardRange >::type 
max_element (const ForwardRange &range, Compare comp)
template<class ForwardRange >
boost::range_iterator
< ForwardRange >::type 
max_element (ForwardRange &range)
template<class ForwardRange >
boost::range_const_iterator
< ForwardRange >::type 
max_element (const ForwardRange &range)
template<class T >
const T &() min (const T &a, const T &b)
template<class T >
T &() min (T &a, T &b)
template<class T , class Compare >
const T &() min (const T &a, const T &b, Compare comp)
template<class T , class Compare >
T &() min (T &a, T &b, Compare comp)
template<class ForwardIterator , class Compare >
ForwardIterator min_element (ForwardIterator first, ForwardIterator last, Compare comp)
template<class ForwardRange >
boost::range_iterator
< ForwardRange >::type 
min_element (ForwardRange &range)
template<class ForwardRange >
boost::range_const_iterator
< ForwardRange >::type 
min_element (const ForwardRange &range)
template<class ForwardRange , class Compare >
boost::range_iterator
< ForwardRange >::type 
min_element (ForwardRange &range, Compare comp)
template<class ForwardRange , class Compare >
boost::range_const_iterator
< ForwardRange >::type 
min_element (const ForwardRange &range, Compare comp)

Detailed Description

Note:
adobe::max differs is stable with respect to sort order where std::max is not. That is:

int a = 1; int b = 1;

assert(&adobe::max(a, b) == b); assert(&std::max(a, b) == a);

adobe::min and adobe::max also implement non-const forms which are not available in the standard which allow the result to be used as an l-value.

int a = 1; int b = 2;

adobe::min(a, b) = 10;

assert(a == 10);

See also:

Function Documentation

const T&() adobe::max ( const T &  a,
const T &  b 
)

minmax implementation

Definition at line 86 of file minmax.hpp.

T&() adobe::max ( T &  a,
T &  b 
)

minmax implementation

Definition at line 96 of file minmax.hpp.

T&() adobe::max ( T &  a,
T &  b,
Compare  comp 
)

minmax implementation

Definition at line 142 of file minmax.hpp.

const T&() adobe::max ( const T &  a,
const T &  b,
Compare  comp 
)

minmax implementation

Definition at line 130 of file minmax.hpp.

ForwardIterator adobe::max_element ( ForwardIterator  first,
ForwardIterator  last,
Compare  comp 
)

minmax implementation

Definition at line 234 of file minmax.hpp.

boost::range_iterator<ForwardRange>::type adobe::max_element ( ForwardRange &  range,
Compare  comp 
)

minmax implementation

Definition at line 246 of file minmax.hpp.

boost::range_const_iterator<ForwardRange>::type adobe::max_element ( const ForwardRange &  range,
Compare  comp 
)

minmax implementation

Definition at line 258 of file minmax.hpp.

boost::range_iterator<ForwardRange>::type adobe::max_element ( ForwardRange &  range )

minmax implementation

Definition at line 211 of file minmax.hpp.

boost::range_const_iterator<ForwardRange>::type adobe::max_element ( const ForwardRange &  range )

minmax implementation

Definition at line 223 of file minmax.hpp.

const T&() adobe::min ( const T &  a,
const T &  b 
)

minmax implementation

Definition at line 66 of file minmax.hpp.

T&() adobe::min ( T &  a,
T &  b 
)

minmax implementation

Definition at line 76 of file minmax.hpp.

const T&() adobe::min ( const T &  a,
const T &  b,
Compare  comp 
)

minmax implementation

Definition at line 106 of file minmax.hpp.

T&() adobe::min ( T &  a,
T &  b,
Compare  comp 
)

minmax implementation

Definition at line 118 of file minmax.hpp.

ForwardIterator adobe::min_element ( ForwardIterator  first,
ForwardIterator  last,
Compare  comp 
)

minmax implementation

Definition at line 176 of file minmax.hpp.

boost::range_iterator<ForwardRange>::type adobe::min_element ( ForwardRange &  range )

minmax implementation

Definition at line 153 of file minmax.hpp.

boost::range_const_iterator<ForwardRange>::type adobe::min_element ( const ForwardRange &  range )

minmax implementation

Definition at line 165 of file minmax.hpp.

boost::range_iterator<ForwardRange>::type adobe::min_element ( ForwardRange &  range,
Compare  comp 
)

minmax implementation

Definition at line 188 of file minmax.hpp.

boost::range_const_iterator<ForwardRange>::type adobe::min_element ( const ForwardRange &  range,
Compare  comp 
)

minmax implementation

Definition at line 200 of file minmax.hpp.

Copyright © 2006-2007 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google