second
template<class G> inline typename secondComponentArray< Vector<G> >::self second( Vector<G> &X)
template<class G> inline typename secondComponentArray<const Vector<G> >::self second(const Vector<G> &X)
template<class G> inline typename secondComponentArray< Matrix<G> >::self second( Matrix<G> &X)
template<class G> inline typename secondComponentArray<const Matrix<G> >::self second(const Matrix<G> &X)
template<class T1,class T2,class T3> inline T2 &second( ColorSpace<T1,T2,T3> &x)
template<class T1,class T2,class T3> inline const T2 &second(const ColorSpace<T1,T2,T3> &x)
Second part (element-wise)
Returns
An array representing the second part of X
Remarks
This function supposes the existence of a function second applicable on each element. A function second is defined for color spaces of the library and for the STL pair structur. The function second has to be overloaded for any other classes, and should give a reference back, if a use as left-value is expected.
See Also