epoc32/include/stdapis/stlport/stl/_relops_cont.h
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
     1.1 --- a/epoc32/include/stdapis/stlport/stl/_relops_cont.h	Tue Nov 24 13:55:44 2009 +0000
     1.2 +++ b/epoc32/include/stdapis/stlport/stl/_relops_cont.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -1,1 +1,29 @@
     1.4 -_relops_cont.h
     1.5 +// This is an implementation file which
     1.6 +// is intended to be included multiple times with different _STLP_ASSOCIATIVE_CONTAINER
     1.7 +// setting
     1.8 +
     1.9 +#ifndef _STLP_EQUAL_OPERATOR_SPECIALIZED
    1.10 +_STLP_TEMPLATE_HEADER
    1.11 +inline bool  _STLP_CALL operator==(const _STLP_TEMPLATE_CONTAINER& __x, 
    1.12 +                                   const _STLP_TEMPLATE_CONTAINER& __y) {
    1.13 +  return __x.size() == __y.size() &&
    1.14 +    equal(__x.begin(), __x.end(), __y.begin());
    1.15 +}
    1.16 +#endif /* _STLP_EQUAL_OPERATOR_SPECIALIZED */
    1.17 +
    1.18 +_STLP_TEMPLATE_HEADER
    1.19 +inline bool  _STLP_CALL operator<(const _STLP_TEMPLATE_CONTAINER& __x, 
    1.20 +                                  const _STLP_TEMPLATE_CONTAINER& __y) {
    1.21 +  return lexicographical_compare(__x.begin(), __x.end(), 
    1.22 +				 __y.begin(), __y.end());
    1.23 +}
    1.24 +
    1.25 +_STLP_RELOPS_OPERATORS( _STLP_TEMPLATE_HEADER , _STLP_TEMPLATE_CONTAINER )
    1.26 +    
    1.27 +#ifdef _STLP_FUNCTION_TMPL_PARTIAL_ORDER
    1.28 +_STLP_TEMPLATE_HEADER
    1.29 +inline void  _STLP_CALL swap(_STLP_TEMPLATE_CONTAINER& __x, 
    1.30 +                             _STLP_TEMPLATE_CONTAINER& __y) {
    1.31 +  __x.swap(__y);
    1.32 +}
    1.33 +#endif /* _STLP_FUNCTION_TMPL_PARTIAL_ORDER */