File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -58,13 +58,13 @@ struct PoolGrownByHalfStrategy
5858 static constexpr std::size_t GetNextSize (std::size_t index) { return InitialSize / 2 ; }
5959};
6060
61- template <typename PoolObjT, typename GrownStrategy >
61+ template <typename PoolObjT, typename GrowStrategy >
6262class CDynamicPool
6363{
6464public:
6565 CDynamicPool ()
6666 {
67- constexpr size_t initialSize = GrownStrategy ::GetInitialSize ();
67+ constexpr size_t initialSize = GrowStrategy ::GetInitialSize ();
6868 m_poolParts.emplace_back (std::make_unique<CDynamicPoolPart<PoolObjT>>(initialSize));
6969 }
7070
@@ -161,7 +161,7 @@ class CDynamicPool
161161private:
162162 CDynamicPoolPart<PoolObjT>* AllocateNewPart ()
163163 {
164- const std::size_t nextSize = GrownStrategy ::GetNextSize (m_poolParts.size ());
164+ const std::size_t nextSize = GrowStrategy ::GetNextSize (m_poolParts.size ());
165165 m_poolParts.emplace_back (std::make_unique<CDynamicPoolPart<PoolObjT>>(nextSize));
166166 return m_poolParts.back ().get ();
167167 }
You can’t perform that action at this time.
0 commit comments