Merge "Remove has_trivial_move trait from Vector<T>" am: 588b3b0c03 am: 85942090f6
am: 749181c10b
Change-Id: Ie339e0ea27463d0c5b093e9a5e262367d1ca57a5
This commit is contained in:
commit
021899fa8a
3 changed files with 0 additions and 15 deletions
|
|
@ -97,13 +97,6 @@ private:
|
||||||
SortedVector< key_value_pair_t<KEY, VALUE> > mVector;
|
SortedVector< key_value_pair_t<KEY, VALUE> > mVector;
|
||||||
};
|
};
|
||||||
|
|
||||||
// KeyedVector<KEY, VALUE> can be trivially moved using memcpy() because its
|
|
||||||
// underlying SortedVector can be trivially moved.
|
|
||||||
template<typename KEY, typename VALUE> struct trait_trivial_move<KeyedVector<KEY, VALUE> > {
|
|
||||||
enum { value = trait_trivial_move<SortedVector< key_value_pair_t<KEY, VALUE> > >::value };
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -133,10 +133,6 @@ protected:
|
||||||
virtual int do_compare(const void* lhs, const void* rhs) const;
|
virtual int do_compare(const void* lhs, const void* rhs) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
// SortedVector<T> can be trivially moved using memcpy() because moving does not
|
|
||||||
// require any change to the underlying SharedBuffer contents or reference count.
|
|
||||||
template<typename T> struct trait_trivial_move<SortedVector<T> > { enum { value = true }; };
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
// No user serviceable parts from here...
|
// No user serviceable parts from here...
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -207,10 +207,6 @@ protected:
|
||||||
virtual void do_move_backward(void* dest, const void* from, size_t num) const;
|
virtual void do_move_backward(void* dest, const void* from, size_t num) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
// Vector<T> can be trivially moved using memcpy() because moving does not
|
|
||||||
// require any change to the underlying SharedBuffer contents or reference count.
|
|
||||||
template<typename T> struct trait_trivial_move<Vector<T> > { enum { value = true }; };
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
// No user serviceable parts from here...
|
// No user serviceable parts from here...
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue