31
|
1 |
/*
|
|
2 |
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
// This is an implementation file which
|
|
18 |
// is intended to be included multiple times with different _STLP_ASSOCIATIVE_CONTAINER
|
|
19 |
// setting
|
|
20 |
|
|
21 |
#if !defined (_STLP_EQUAL_OPERATOR_SPECIALIZED)
|
|
22 |
_STLP_TEMPLATE_HEADER
|
|
23 |
inline bool _STLP_CALL operator==(const _STLP_TEMPLATE_CONTAINER& __x,
|
|
24 |
const _STLP_TEMPLATE_CONTAINER& __y) {
|
|
25 |
return __x.size() == __y.size() &&
|
|
26 |
equal(__x.begin(), __x.end(), __y.begin());
|
|
27 |
}
|
|
28 |
#endif /* _STLP_EQUAL_OPERATOR_SPECIALIZED */
|
|
29 |
|
|
30 |
_STLP_TEMPLATE_HEADER
|
|
31 |
inline bool _STLP_CALL operator<(const _STLP_TEMPLATE_CONTAINER& __x,
|
|
32 |
const _STLP_TEMPLATE_CONTAINER& __y) {
|
|
33 |
return lexicographical_compare(__x.begin(), __x.end(),
|
|
34 |
__y.begin(), __y.end());
|
|
35 |
}
|
|
36 |
|
|
37 |
_STLP_RELOPS_OPERATORS( _STLP_TEMPLATE_HEADER , _STLP_TEMPLATE_CONTAINER )
|
|
38 |
|
|
39 |
#if defined (_STLP_FUNCTION_TMPL_PARTIAL_ORDER)
|
|
40 |
_STLP_TEMPLATE_HEADER
|
|
41 |
inline void _STLP_CALL swap(_STLP_TEMPLATE_CONTAINER& __x,
|
|
42 |
_STLP_TEMPLATE_CONTAINER& __y) {
|
|
43 |
__x.swap(__y);
|
|
44 |
}
|
|
45 |
#endif /* _STLP_FUNCTION_TMPL_PARTIAL_ORDER */
|