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) |
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.
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] |
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] |
References MakeReturn< T >::make().
Referenced by DomainRemoveOverlap(), ReductionTraits< FnMinAssign, T >::identity(), IntersectorData< Dim >::intersect(), Domain< 1, DT >::max(), FnMaxAssign::operator()(), FnMax::operator()(), fomax< T >::operator()(), PeriodicFaceBC< Dim >::PeriodicFaceBC(), and PosReflectFaceBC< Dim >::PosReflectFaceBC().