asio-tr2 icon indicating copy to clipboard operation
asio-tr2 copied to clipboard

Add allocator constructors for strand

Open chriskohlhoff opened this issue 10 years ago • 1 comments

chriskohlhoff avatar Feb 25 '15 08:02 chriskohlhoff

Pre-Lenexa Summary

[async.strand]

In Cologne it was requested that the strand<> template provide allocator constructors. These allocators would be used to allocate any internal data structures required by the strand (such as a queue for the pending function objects).

I suggest that an allocator-aware constructor be added as a counterpart only for the following constructor:

explicit strand(Executor ex);

i.e.:

template <class Allocator>
strand(Executor ex, const Allocator& a);

chriskohlhoff avatar May 04 '15 12:05 chriskohlhoff