author | William Roberts <williamr@symbian.org> |
Wed, 31 Mar 2010 12:33:34 +0100 | |
branch | Symbian3 |
changeset 4 | 837f303aceeb |
parent 2 | 2fe1408b6811 |
permissions | -rw-r--r-- |
williamr@4 | 1 |
/* |
williamr@4 | 2 |
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
williamr@4 | 3 |
* All rights reserved. |
williamr@4 | 4 |
* This component and the accompanying materials are made available |
williamr@4 | 5 |
* under the terms of "Eclipse Public License v1.0" |
williamr@4 | 6 |
* which accompanies this distribution, and is available |
williamr@4 | 7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
williamr@4 | 8 |
* |
williamr@4 | 9 |
* Initial Contributors: |
williamr@4 | 10 |
* Nokia Corporation - initial contribution. |
williamr@4 | 11 |
* |
williamr@4 | 12 |
* Contributors: |
williamr@4 | 13 |
* |
williamr@4 | 14 |
* Description: |
williamr@4 | 15 |
* |
williamr@4 | 16 |
*/ |
williamr@2 | 17 |
// This is an implementation file which |
williamr@2 | 18 |
// is intended to be included multiple times with different _STLP_ASSOCIATIVE_CONTAINER |
williamr@2 | 19 |
// setting |
williamr@2 | 20 |
|
williamr@2 | 21 |
#ifdef _STLP_EXTRA_OPERATORS_FOR_DEBUG |
williamr@2 | 22 |
|
williamr@2 | 23 |
_STLP_TEMPLATE_HEADER |
williamr@2 | 24 |
inline bool _STLP_CALL |
williamr@2 | 25 |
operator==(const _STLP_TEMPLATE_CONTAINER& __x, const _STLP_TEMPLATE_CONTAINER& __y) |
williamr@2 | 26 |
{ |
williamr@2 | 27 |
return (const _STLP_TEMPLATE_CONTAINER_BASE&)__x == (const _STLP_TEMPLATE_CONTAINER_BASE&)__y; |
williamr@2 | 28 |
} |
williamr@2 | 29 |
|
williamr@2 | 30 |
_STLP_TEMPLATE_HEADER |
williamr@2 | 31 |
inline bool _STLP_CALL |
williamr@2 | 32 |
operator<(const _STLP_TEMPLATE_CONTAINER& __x, const _STLP_TEMPLATE_CONTAINER& __y) |
williamr@2 | 33 |
{ |
williamr@2 | 34 |
return (const _STLP_TEMPLATE_CONTAINER_BASE&)__x < (const _STLP_TEMPLATE_CONTAINER_BASE&)__y; |
williamr@2 | 35 |
} |
williamr@2 | 36 |
|
williamr@2 | 37 |
_STLP_RELOPS_OPERATORS( _STLP_TEMPLATE_HEADER , _STLP_TEMPLATE_CONTAINER ) |
williamr@2 | 38 |
|
williamr@2 | 39 |
#endif /* _STLP_EXTRA_OPERATORS_FOR_DEBUG */ |
williamr@2 | 40 |
|
williamr@2 | 41 |
#ifdef _STLP_FUNCTION_TMPL_PARTIAL_ORDER |
williamr@2 | 42 |
|
williamr@2 | 43 |
_STLP_TEMPLATE_HEADER |
williamr@2 | 44 |
inline void _STLP_CALL swap(_STLP_TEMPLATE_CONTAINER& __x, _STLP_TEMPLATE_CONTAINER& __y) |
williamr@2 | 45 |
{ |
williamr@2 | 46 |
__x.swap(__y); |
williamr@2 | 47 |
} |
williamr@2 | 48 |
|
williamr@2 | 49 |
#endif /* _STLP_FUNCTION_TMPL_PARTIAL_ORDER */ |
williamr@2 | 50 |
|
williamr@2 | 51 |
#if 0 /* def _STLP_CLASS_PARTIAL_SPECIALIZATION */ |
williamr@2 | 52 |
|
williamr@2 | 53 |
_STLP_TEMPLATE_HEADER |
williamr@2 | 54 |
struct __type_traits<_STLP_STD::_STLP_TEMPLATE_CONTAINER > : __type_traits_aux<0, 1> |
williamr@2 | 55 |
{}; |
williamr@2 | 56 |
|
williamr@2 | 57 |
#endif /* _STLP_CLASS_PARTIAL_SPECIALIZATION */ |