summaryrefslogtreecommitdiff
path: root/src/core/smallmap_type.hpp
AgeCommit message (Collapse)Author
2020-12-15Codechange: Make use of the improved C++17 emplace_back function.Michael Lutz
2020-05-21Codechange: Replace SmallPair with std::pair.Michael Lutz
std::pair is already the smallest possible pair, and it already handles non-POD types correctly.
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-04-18Cleanup: remove core/sort_func.hpp as it's not used anymoreglx
2019-04-13Fix 801cbea9c: operator< is not always the best ideaglx
Also removes unused and anyway broken SmallMap::SortByKey() function.
2019-04-13Codechange: use std::sort() for all std::vector typesglx
2019-03-28Fix #7165: Const overload SmallMap::Contains(key) compared wrong types.Michael Lutz
Const and non-const Find() have different return types.
2019-03-28Fix #7165: SmallMap::Erase(key) does not work correctlystormcone
2019-03-27Fix #7421: Don't (directly) dereference std::vector::end() in SmallMapCharles Pigott
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: Replaced SmallVector::[Begin|End]() with std alternativesHenry 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: [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.
2012-11-14(svn r24741) -Add: Const-methods to SmallMap.frosch
2012-01-01(svn r23704) -Doc: Doxygen comment fixes and additions.alberth
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)
2010-12-26(svn r21645) -Doc: Document SmallPair and SmallMap template parameters.alberth
2010-10-16(svn r20951) -Codechange: Add SmallMap::Contains() and use it.frosch
2010-08-01(svn r20283) -Codechange: Unify start of doygen comments.frosch
2010-06-13(svn r19970) -Fix (r14742): SmallMap::Insert() did not compile. Construct ↵frosch
new items like operator[].
2009-10-17(svn r17790) -Feature: translatable base sound/graphics set descriptionsrubidium
2009-09-13(svn r17527) -Codechange: use QSortT instead of qsort for sorting smallmapsrubidium
2009-08-21(svn r17248) -Fix: add GPL license notice where appropriaterubidium
2009-02-11(svn r15447) -Codechange: void functions don't tend to return true if and ↵peter1138
only if anyway
2009-02-11(svn r15446) -Revert(r15445): Seems that "iff" stands for "if and only if". ↵belugas
So not much of a typo. Thanks, Yexo. I feel less ignorant today :D
2009-02-11(svn r15445) -Fix: little typosbelugas
2008-12-30(svn r14776) -Fix (r14742): ListPositionMap relied on std::map having sorted ↵peter1138
the map, which is now done by a manual key sorter on SmallMap. This fixes engine ID list sorting.
2008-12-26(svn r14742) -Codechange: use SmallMap in two cases to reduce compilation ↵smatz
time and binary size