What's the point of std::function constructor with custom allocator but no other args?
I'm playing around with std::function and custom allocators but its not behaving as I expected when I don't provide the function with an initial functor. When I provide a custom allocator to the constructor but no initial functor, the allocator is never used or so it seems. This is my code. //Simple functor class that is big to force allocations struct Functor128 { Functor128() {} char someBytes[128]; void operator()(int something) { cout << "Functor128 Called with value " << something << endl; } }; int main(int argc, char* argv[]) { Allocator<char, 1> myAllocator1; Allocator<char, 2>