boost-pool Questions
1
I am new to boost and I want to know how exactly the boost::pool libraries can help me in creating a custom memory allocator.
And I have two vector of struct objects.
First vector is of structure t...
Endurance asked 14/2, 2018 at 8:13
1
So i made this container allocator memory_pools class based on boost pool :
memory_pools.hpp
#ifndef MEMORY_POOL_HPP
# define MEMORY_POOLS_HPP
// boost
# include <boost/pool/pool.hpp>
# in...
Scurrilous asked 24/10, 2014 at 16:59
1
I am using boost pool as a static memory provider,
void func()
{
std::vector<int, boost::pool_allocator<int> > v;
for (int i = 0; i < 10000; ++i)
v.push_back(13);
}
In above c...
Tetrapod asked 27/5, 2013 at 10:51
2
Solved
Background
My previous question about boost.pool led me to investigate boost.pool in detail, and now I have a supplementary question to finalize my understanding.
Prelude
This reference states t...
Miscellanea asked 6/4, 2013 at 5:26
1
Solved
I was under the impression that an object pool is a design pattern used for managing a group of pre-allocated objects to which a client can request and be returned one of these objects. However, it...
Azores asked 6/4, 2013 at 1:28
2
I am writing a performance critical application in which I am creating large number of objects of similar type to place orders. I am using boost::singleton_pool for allocating memory. Finally my cl...
Unbend asked 8/5, 2012 at 14:27
1
I wrote custom operator new and operator delete for the class MyOrder. I am allocating memory using boost::singleton pool. Here is the program testing the performance,
#include <boost/pool/sing...
Insufferable asked 5/5, 2012 at 23:32
1
© 2022 - 2024 — McMap. All rights reserved.