mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
.Core: Index/ArrayIndex minor <<= overloading adjustment
git-svn-id: svn://ultimatepp.org/upp/trunk@2239 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
771172a3f8
commit
c3bebbf1d0
1 changed files with 5 additions and 1 deletions
|
|
@ -191,7 +191,7 @@ protected:
|
|||
};
|
||||
|
||||
template <class T, class HashFn = StdHash<T> >
|
||||
class Index : MoveableAndDeepCopyOption< Index<T, HashFn > >,
|
||||
class Index : Moveable< Index<T, HashFn > >,
|
||||
public AIndex<T, Vector<T>, HashFn> {
|
||||
typedef AIndex< T, Vector<T>, HashFn > B;
|
||||
public:
|
||||
|
|
@ -205,6 +205,8 @@ public:
|
|||
|
||||
Index& operator=(pick_ Vector<T>& x) { B::operator=(x); return *this; }
|
||||
|
||||
Index& operator<<=(const Index& x) { B::operator<<=(x.GetKeys()); return *this; }
|
||||
|
||||
friend void Swap(Index& a, Index& b) { a.B::Swap(b); }
|
||||
|
||||
typedef typename B::ConstIterator ConstIterator; // GCC bug (?)
|
||||
|
|
@ -234,6 +236,8 @@ public:
|
|||
|
||||
ArrayIndex& operator=(pick_ Array<T>& x) { B::operator=(x); return *this; }
|
||||
|
||||
ArrayIndex& operator<<=(const ArrayIndex& x) { B::operator<<=(x.GetKeys()); return *this; }
|
||||
|
||||
friend void Swap(ArrayIndex& a, ArrayIndex& b) { a.B::Swap(b); }
|
||||
|
||||
typedef typename B::ConstIterator ConstIterator; // GCC bug (?)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue