wlan_bearer/wlanldd/wlan_common/osa_common/inc/osacarray.inl
changeset 0 c40eb8fe8501
equal deleted inserted replaced
-1:000000000000 0:c40eb8fe8501
       
     1 /*
       
     2 * Copyright (c) 2007 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 the License "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:   Carray inline implementations
       
    15 *
       
    16 */
       
    17 
       
    18 /*
       
    19 * %version: 3 %
       
    20 */
       
    21 
       
    22 // -----------------------------------------------------------------------------
       
    23 // assignment operator 
       
    24 // -----------------------------------------------------------------------------
       
    25 //
       
    26 template<class T, TInt the_size,  class CopyingPolicy>
       
    27 inline Carray<T, the_size, CopyingPolicy>& 
       
    28 Carray<T, the_size, CopyingPolicy>::operator=( const Self& o )
       
    29     {
       
    30     // use policy chosen at compile time
       
    31     Copy( 
       
    32         const_cast<iterator>(o.begin()), 
       
    33         const_cast<iterator>(o.end()), 
       
    34         begin() );      
       
    35 
       
    36 	return (*this);
       
    37     }
       
    38 
       
    39 // -----------------------------------------------------------------------------
       
    40 // operator == 
       
    41 // -----------------------------------------------------------------------------
       
    42 //
       
    43 template<class T, TInt the_size, class CopyingPolicy>
       
    44 inline TBool operator == (
       
    45     const Carray<T, the_size, CopyingPolicy>& x, 
       
    46     const Carray<T, the_size, CopyingPolicy >& y )
       
    47     {
       
    48     return equal( x.begin(), x.end(), y.begin() );
       
    49     }
       
    50