Would be to write it like:
template<class container> container initializer(const typename container::value_type &d) { container t ; t.insert(t.end(), d); return t; }
And avoid the question about allocators altogether.
<code>
<blockcode>
<cpp>
<foo>
[foo]
More information about formatting options
Recent comments
2 hours 39 min ago
2 hours 40 min ago
12 hours 53 min ago
14 hours 21 min ago
14 hours 21 min ago
14 hours 21 min ago
21 hours 38 min ago
2 weeks 3 days ago
4 weeks 4 days ago
4 weeks 4 days ago