Multimap equal_range and count with 2 classe

hi i m usimng a multimap as
multimap<CustName,PhoneNo,Comp> but its equal_range() and count() functions are not working. CustName and PhoneNo are 2 classes.

I have declared a third class Comp to compare 2 CustName objects and also overloaded '<' operator but on compiling its giving an error
does your Comp class have a bool operator()(const CustName&, const CustName&) const; defined?
yeah it has actually i found the error i dint returned the boolean flag for same value keys.
Thanks though.
Topic archived. No new replies allowed.