ArrayOperatorSpecializations.h File Reference

Specializations for min()/max(). More...

This graph shows which files directly or indirectly include this file:


Functions

template<int D1, class T1 , class E1 >
MakeReturn< BinaryNode< FnMin,
typename CreateLeaf< Array< D1,
T1, E1 > >::Leaf_t, typename
CreateLeaf< Array< D1, T1, E1 >
>::Leaf_t > >::Expression_t 
min (const Array< D1, T1, E1 > &l, const Array< D1, T1, E1 > &r)
template<int D1, class T1 , class E1 >
MakeReturn< BinaryNode< FnMax,
typename CreateLeaf< Array< D1,
T1, E1 > >::Leaf_t, typename
CreateLeaf< Array< D1, T1, E1 >
>::Leaf_t > >::Expression_t 
max (const Array< D1, T1, E1 > &l, const Array< D1, T1, E1 > &r)

Detailed Description

Specializations for min()/max().

The STL defines min() and max() functions with signatures template<class T> T min(T,T); If you generate a scope that includes both the std:: namespace, and the namespace containing the Pooma versions of min() and max(), then min(Array<1>,Array<1>) is ambiguous. These specializations disambiguate this common case.


Function Documentation

template<int D1, class T1 , class E1 >
MakeReturn<BinaryNode<FnMin, typename CreateLeaf<Array<D1,T1,E1> >::Leaf_t, typename CreateLeaf<Array<D1,T1,E1> >::Leaf_t> >::Expression_t min ( const Array< D1, T1, E1 > &  l,
const Array< D1, T1, E1 > &  r 
) [inline]

template<int D1, class T1 , class E1 >
MakeReturn<BinaryNode<FnMax, typename CreateLeaf<Array<D1,T1,E1> >::Leaf_t, typename CreateLeaf<Array<D1,T1,E1> >::Leaf_t> >::Expression_t max ( const Array< D1, T1, E1 > &  l,
const Array< D1, T1, E1 > &  r 
) [inline]


Generated on Wed Mar 16 06:16:13 2011 for FreePOOMA by  doxygen 1.5.9