0

I would create a memory pool for the node of a C++11 forward_list.

Is it possible use the BOOST pool memory with std::forward_list?

TemplateRex
  • 69,038
  • 19
  • 164
  • 304
Claudio La Rosa
  • 141
  • 1
  • 2
  • 7

1 Answers1

2

This stack-overflow answer provides source code for a C++11-conforming pool allocator that will work with any C++11-conforming container, including std::forward_list.

Community
  • 1
  • 1
Howard Hinnant
  • 206,506
  • 52
  • 449
  • 577