epoc32/include/stdapis/stlportv5/stl/_relops_cont.h
branchSymbian3
changeset 4 837f303aceeb
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/stdapis/stlportv5/stl/_relops_cont.h	Wed Mar 31 12:33:34 2010 +0100
     1.3 @@ -0,0 +1,29 @@
     1.4 +// This is an implementation file which
     1.5 +// is intended to be included multiple times with different _STLP_ASSOCIATIVE_CONTAINER
     1.6 +// setting
     1.7 +
     1.8 +#if !defined (_STLP_EQUAL_OPERATOR_SPECIALIZED)
     1.9 +_STLP_TEMPLATE_HEADER
    1.10 +inline bool _STLP_CALL operator==(const _STLP_TEMPLATE_CONTAINER& __x,
    1.11 +                                  const _STLP_TEMPLATE_CONTAINER& __y) {
    1.12 +  return __x.size() == __y.size() &&
    1.13 +         equal(__x.begin(), __x.end(), __y.begin());
    1.14 +}
    1.15 +#endif /* _STLP_EQUAL_OPERATOR_SPECIALIZED */
    1.16 +
    1.17 +_STLP_TEMPLATE_HEADER
    1.18 +inline bool _STLP_CALL operator<(const _STLP_TEMPLATE_CONTAINER& __x,
    1.19 +                                 const _STLP_TEMPLATE_CONTAINER& __y) {
    1.20 +  return lexicographical_compare(__x.begin(), __x.end(),
    1.21 +                                 __y.begin(), __y.end());
    1.22 +}
    1.23 +
    1.24 +_STLP_RELOPS_OPERATORS( _STLP_TEMPLATE_HEADER , _STLP_TEMPLATE_CONTAINER )
    1.25 +
    1.26 +#if defined (_STLP_FUNCTION_TMPL_PARTIAL_ORDER)
    1.27 +_STLP_TEMPLATE_HEADER
    1.28 +inline void _STLP_CALL swap(_STLP_TEMPLATE_CONTAINER& __x,
    1.29 +                            _STLP_TEMPLATE_CONTAINER& __y) {
    1.30 +  __x.swap(__y);
    1.31 +}
    1.32 +#endif /* _STLP_FUNCTION_TMPL_PARTIAL_ORDER */