summaryrefslogtreecommitdiff
path: root/src/core/smallvec_type.hpp
AgeCommit message (Collapse)Author
2021-01-08Codechange: Remove min/max functions in favour of STL variants (#8502)Charles Pigott
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-05-04Remove: grow() helper functionglx
2019-04-09Remove: AutoFreeSmallVector.Michael Lutz
The last use was for storing a list of memory blocks. As the way these lists are accessed is very specific, it is easier to just write an explicit destructor instead of trying to exactly match the behaviour.
2019-04-09Codechange: If something is a vector of strings, use a vector of strings ↵Michael Lutz
instead of an AutoFreeSmallVector.
2019-04-09Codechange: Switch DropDownList to directly use std::vector, thus making ↵Michael Lutz
AutoDeleteSmallVector obsolete. DropDownListItem are strongly managed using std::unique_ptr to ensure leak-free handling. Appropriate use of move-semantics make intent a lot clearer than parameter comments and allows the compiler to generate copy-free code for most situations.
2019-03-26Codechange: Use range-based for-loop in Auto[Free|Delete]SmallVectorHenry Wilson
2019-03-26Cleanup: Remove unused size template parameters from SmallMap and ↵Henry Wilson
Auto[Free|Delete]SmallVector
2019-03-26Codechange: Removed SmallVector completelyHenry Wilson
2019-03-26Codechange: Declare SmallVector as an alias for std::vectorHenry Wilson
2019-03-26Codechange: Replaced SmallVector::[Begin|End]() with std alternativesHenry Wilson
2019-03-26Codechange: Replaced SmallVector::Include() with include()Henry Wilson
2019-03-26Codechange: Replaced SmallVector::Find() with std::find()Henry Wilson
2019-03-26Codechange: Removed SmallVector::Insert()Henry Wilson
2019-03-26Codechange: Replaced SmallVector::Append() with ↵Henry Wilson
std::vector::[push|emplace]_back()
2019-03-26Codechange: Replaced SmallVector::Erase() with std::vector::erase()Henry Wilson
2019-03-26Codechange: Replaced SmallVector::Get() const with std alternativesHenry Wilson
2019-03-26Codechange: Replaced SmallVector::Get(n) non-const with std::vector::data() + nHenry Wilson
2019-03-26Codechange: Removed SmallVector::Assign()Henry Wilson
2019-03-26Codechange: Replaced SmallVector::Contains() with std::find() patternHenry Wilson
2019-03-26Codechange: Replaced SmallVector::ErasePreservingOrder(pos, count) with ↵Henry Wilson
std::vector::erase()
2019-03-26Codechange: Replaced SmallVector::ErasePreservingOrder(it, count) with ↵Henry Wilson
std::vector::erase()
2019-03-26Codechange: Replaced SmallVector::Find() const with suitable alternativesHenry Wilson
The use of std::none_of in network/core/host.cpp is driven by the non-const comparison operator use by NetworkAddress. A future commit should address the const_casts in that class to ensure const-correctness.
2019-03-26Codechange: Replaced SmallVector::Find() non-const with std::find()Henry Wilson
2019-03-26Codechange: Replaced SmallVector::Reset() with std::vector::clear() + ↵Henry Wilson
shrink_to_fit()
2019-03-26Codechange: Replaced SmallVector::Resize() with std::vector::resize()Henry Wilson
2019-03-26Codechange: Replace SmallVector::Length() with std::vector::size()Henry Wilson
2019-03-26Codechange: Removed SmallVector::operator[]Henry Wilson
2019-03-26Codechange: Replaced SmallVector::Compact() with std::vector::shrink_to_fit()Henry Wilson
2019-03-26Codechange: Replace SmallVector::Clear() with std::vector::clear()Henry Wilson
2019-03-26Codechange: [core] Implement SmallVector using std::vectorHenry Wilson
The public and protected interface to SmallVector are unchanged SmallVector now requires that items be default constructible This isn't an issue since some contained items were previously created uninitialized. Temporary default constructors are added to the following structs - SmallPair - SmallStackItem - GRFPresence Where vector<bool> is required, transition immediately to std::vector to avoid returning proxy object references.
2018-04-15Codechange: Add functions to insert and extract an element at a specific ↵Michael Lutz
position in a SmallVec.
2016-09-04(svn r27641) -Codechange: Fold the _fios_items file list vector into its own ↵alberth
class.
2013-02-24(svn r25043) -Change [FS#3764]: Only display subtypes in the refit GUI which ↵frosch
are available for all selected vehicles. Also add a generic list item to refit while keeping the subtypes of individual vehicles.
2012-07-29(svn r24448) -Fix [FS#5255]: Copy constructor and assignment operator cannot ↵frosch
be implicit template specialisations. (adf88)
2012-05-25(svn r24275) -Codechange: Make SmallVector::FindIndex() const.frosch
2011-12-20(svn r23640) -Fix: stop using FORCEINLINE (1/3rd of the instances were, the ↵truebrain
others were still regular inline), but make sure inline is always a 'forced' inline (I am looking at you MSVC)
2011-12-19(svn r23634) -Add: support language files for GameScript (Rubidium)truebrain
2011-05-02(svn r22411) -Document: another bunch of bitsrubidium
2011-01-22(svn r21890) -Cleanup: remove some unneeded includesrubidium
2010-09-03(svn r20731) -Fix (r20739): SmallVector did not have an assignment operator, ↵yexo
causing invalid memory reads / double free
2010-09-03(svn r20729) -Fix [FS#4107]: assert when overbuilding objectyexo
2010-07-31(svn r20266) -Doc: Mostly typo fixes, a few doxygen-related improvements.alberth
2010-05-30(svn r19909) -Doc: Typo fixes, small doxygen improvements.alberth
2010-02-03(svn r18996) -Fix (r18993, r18994): MSVC 64 bits had somethings to complain ↵rubidium
about
2010-02-03(svn r18993) -Codechange: allow allocating multiple items in a SmallVector ↵rubidium
with one call.
2009-12-26(svn r18640) -Fix (r18633): don't assert when accessing first invalid item, ↵smatz
it's used quite often in the code -Revert (r18637): it's not needed any more
2009-12-25(svn r18633) -Codechange: fortify SmallVector a bit moresmatz
2009-09-14(svn r17541) -Feature: Filtering in Add-NewGRF dialog.frosch
2009-08-21(svn r17248) -Fix: add GPL license notice where appropriaterubidium