FreePOOMA
2.4.1
|
min()/max() specializations More...
Functions | |
template<class D1 , class T1 , class E1 > | |
MakeReturn< BinaryNode< FnMin, typename CreateLeaf< Field< D1, T1, E1 > >::Leaf_t, typename CreateLeaf< Field< D1, T1, E1 > >::Leaf_t > >::Expression_t | min (const Field< D1, T1, E1 > &l, const Field< D1, T1, E1 > &r) |
template<class D1 , class T1 , class E1 > | |
MakeReturn< BinaryNode< FnMax, typename CreateLeaf< Field< D1, T1, E1 > >::Leaf_t, typename CreateLeaf< Field< D1, T1, E1 > >::Leaf_t > >::Expression_t | max (const Field< D1, T1, E1 > &l, const Field< D1, T1, E1 > &r) |
min()/max() specializations
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(Field<1>,Field<1>) is ambiguous. These specializations disambiguate this common case.
MakeReturn<BinaryNode<FnMin, typename CreateLeaf<Field<D1,T1,E1> >::Leaf_t, typename CreateLeaf<Field<D1,T1,E1> >::Leaf_t> >::Expression_t min | ( | const Field< D1, T1, E1 > & | l, |
const Field< D1, T1, E1 > & | r | ||
) | [inline] |
References MakeReturn< T >::make().
MakeReturn<BinaryNode<FnMax, typename CreateLeaf<Field<D1,T1,E1> >::Leaf_t, typename CreateLeaf<Field<D1,T1,E1> >::Leaf_t> >::Expression_t max | ( | const Field< D1, T1, E1 > & | l, |
const Field< D1, T1, E1 > & | r | ||
) | [inline] |
References MakeReturn< T >::make().