cpp/thread/promise/uses allocator

Provides a specialization of the std type trait for std.