Ignore:
Timestamp:
Apr 22, 2012, 2:31:55 AM (9 years ago)
Author:
sam
Message:

core: use operator<< instead of operator+= to append stuff to arrays,
it's a bit less confusing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/array.h

    r1261 r1269  
    4141    }
    4242
    43     inline Array<T1, T2, T3> const& operator+=(Element const &x)
     43    inline Array<T1, T2, T3> const& operator<<(Element const &x)
    4444    {
    4545        if (m_count >= m_reserved)
     
    128128    }
    129129
    130     inline Array<T1, T2> const& operator+=(Element const &x)
     130    inline Array<T1, T2> const& operator<<(Element const &x)
    131131    {
    132132        if (m_count >= m_reserved)
     
    211211    }
    212212
    213     inline Array<T1> const& operator+=(T1 const &x)
     213    inline Array<T1> const& operator<<(T1 const &x)
    214214    {
    215215        if (m_count >= m_reserved)
     
    228228    inline void Append(T1 const &x)
    229229    {
    230         *this += x;
     230        *this << x;
    231231    }
    232232
Note: See TracChangeset for help on using the changeset viewer.