
Markus Werle wrote:
Jeff Flinn <TriumphSprint2000 <at> hotmail.com> writes:
Whoa!!! Does tr1::bind provide the relational operators that boost::bind does? We use these extensively throughout our production code.
RTFM: (F stands for 'fine' in this case, and M for 'http://www.boost.org/doc/libs/1_35_0/doc/html/boost_tr1/subject_list.html'):
// [6.1.3.5] relational operators template<class T1, class T2, ..., class TM, class U1, class U2, ..., class UM> bool operator==(const tuple<T1, T2, ..., TM>&, const tuple<U1, U2, ..., UM>&); template<class T1, class T2, ..., class TM, class U1, class U2, ..., class UM> bool operator<(const tuple<T1, T2, ..., TM>&, const tuple<U1, U2, ..., UM>&); template<class T1, class T2, ..., class TM, class U1, class U2, ..., class UM> bool operator!=(const tuple<T1, T2, ..., TM>&, const tuple<U1, U2, ..., UM>&); template<class T1, class T2, ..., class TM, class U1, class U2, ..., class UM> bool operator>(const tuple<T1, T2, ..., TM>&, const tuple<U1, U2, ..., UM>&); template<class T1, class T2, ..., class TM, class U1, class U2, ..., class UM> bool operator<=(const tuple<T1, T2, ..., TM>&, const tuple<U1, U2, ..., UM>&); template<class T1, class T2, ..., class TM, class U1, class U2, ..., class UM> bool operator>=(const tuple<T1, T2, ..., TM>&, const tuple<U1, U2, ..., UM>&);
I had read the Fine Manual, but I'm a little dense and don't see the relationship between the cited tuple relational operators and bind. ;-) Re-RTFM, I don't see any other mention of relational operators existing or not in regards to FUNTION OBJECT BINDERS. IIRC, Peter added the &&, || operators in may. Jeff