Changeset - r23533:ef6cc36ee39e
[Not reviewed]
master
0 1 0
Henry Wilson - 5 years ago 2019-02-20 18:53:57
m3henry@googlemail.com
Codechange: Removed SmallVector::Insert()
1 file changed with 0 insertions and 14 deletions:
0 comments (0 inline, 0 general)
src/core/smallvec_type.hpp
Show inline comments
 
@@ -67,20 +67,6 @@ public:
 
	~SmallVector() = default;
 

	
 
	/**
 
	 * Insert a new item at a specific position into the vector, moving all following items.
 
	 * @param item Position at which the new item should be inserted
 
	 * @return pointer to the new item
 
	 */
 
	inline T *Insert(T *item)
 
	{
 
		assert(item >= this->Begin() && item <= this->End());
 

	
 
		size_t start = item - this->Begin();
 
		std::vector<T>::insert(std::vector<T>::begin() + start);
 
		return this->Begin() + start;
 
	}
 

	
 
	/**
 
	 * Search for the first occurrence of an item.
 
	 * The '!=' operator of T is used for comparison.
 
	 * @param item Item to search for
0 comments (0 inline, 0 general)