home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / stlpt453.zip / STLport-4.5.3 / stlport / stl / _relops_cont.h < prev    next >
Text File  |  2001-01-26  |  987b  |  28 lines

  1. // This is an implementation file which
  2. // is intended to be included multiple times with different _STLP_ASSOCIATIVE_CONTAINER
  3. // setting
  4.  
  5. _STLP_TEMPLATE_HEADER
  6. inline bool  _STLP_CALL operator==(const _STLP_TEMPLATE_CONTAINER& __x, 
  7.                                    const _STLP_TEMPLATE_CONTAINER& __y) {
  8.   return __x.size() == __y.size() &&
  9.     equal(__x.begin(), __x.end(), __y.begin());
  10. }
  11.  
  12. _STLP_TEMPLATE_HEADER
  13. inline bool  _STLP_CALL operator<(const _STLP_TEMPLATE_CONTAINER& __x, 
  14.                                   const _STLP_TEMPLATE_CONTAINER& __y) {
  15.   return lexicographical_compare(__x.begin(), __x.end(), 
  16.                  __y.begin(), __y.end());
  17. }
  18.  
  19. _STLP_RELOPS_OPERATORS( _STLP_TEMPLATE_HEADER , _STLP_TEMPLATE_CONTAINER )
  20.     
  21. #ifdef _STLP_FUNCTION_TMPL_PARTIAL_ORDER
  22. _STLP_TEMPLATE_HEADER
  23. inline void  _STLP_CALL swap(_STLP_TEMPLATE_CONTAINER& __x, 
  24.                              _STLP_TEMPLATE_CONTAINER& __y) {
  25.   __x.swap(__y);
  26. }
  27. #endif /* _STLP_FUNCTION_TMPL_PARTIAL_ORDER */
  28.