We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6463117 commit 7596282Copy full SHA for 7596282
src/memusage.h
@@ -84,10 +84,10 @@ struct stl_shared_counter
84
size_t weak_count;
85
};
86
87
-template<typename X>
88
-static inline size_t DynamicUsage(const std::vector<X>& v)
+template<typename T, typename Allocator>
+static inline size_t DynamicUsage(const std::vector<T, Allocator>& v)
89
{
90
- return MallocUsage(v.capacity() * sizeof(X));
+ return MallocUsage(v.capacity() * sizeof(T));
91
}
92
93
template<unsigned int N, typename X, typename S, typename D>
0 commit comments