Quote Originally Posted by laserlight View Post
What do you mean?
at the end I wrote the stl code that is
Code:
_M_impl._M_key_compare(__k,_S_key(__j._M_node))
which actually is
Code:
_Rb_tree_impl<_Compare>::_Key_compare(__k,_S_key(__j._M_node))
and that means
Code:
_Compare(__k,_S_key(__j._M_node))
which means
Code:
_Compare()(__k,_S_key(__j._M_node))
and here this _Compare is the template argument that represent's the LessFubctor. and it returns bool value wheather lhs < rhs or not. But why and how it is being used for comparisn