diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/smallmap_type.hpp | 2 | ||||
-rw-r--r-- | src/core/smallvec_type.hpp | 8 |
2 files changed, 4 insertions, 6 deletions
diff --git a/src/core/smallmap_type.hpp b/src/core/smallmap_type.hpp index debd4165e..d7a9a3832 100644 --- a/src/core/smallmap_type.hpp +++ b/src/core/smallmap_type.hpp @@ -39,7 +39,7 @@ struct SmallPair { * * @see SmallVector */ -template <typename T, typename U, uint S = 16> +template <typename T, typename U> struct SmallMap : std::vector<SmallPair<T, U> > { typedef ::SmallPair<T, U> Pair; typedef Pair *iterator; diff --git a/src/core/smallvec_type.hpp b/src/core/smallvec_type.hpp index 19dab2228..e71edf89f 100644 --- a/src/core/smallvec_type.hpp +++ b/src/core/smallvec_type.hpp @@ -77,9 +77,8 @@ T* grow(std::vector<T>& vec, std::size_t num) * inside the list. * * @param T The type of the items stored, must be a pointer - * @param S The steps of allocation */ -template <typename T, uint S> +template <typename T> class AutoFreeSmallVector : public std::vector<T> { public: ~AutoFreeSmallVector() @@ -108,9 +107,8 @@ public: * inside the list. * * @param T The type of the items stored, must be a pointer - * @param S The steps of allocation */ -template <typename T, uint S> +template <typename T> class AutoDeleteSmallVector : public std::vector<T> { public: ~AutoDeleteSmallVector() @@ -131,6 +129,6 @@ public: } }; -typedef AutoFreeSmallVector<char*, 4> StringList; ///< Type for a list of strings. +typedef AutoFreeSmallVector<char*> StringList; ///< Type for a list of strings. #endif /* SMALLVEC_TYPE_HPP */ |