A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cplusplus.com/reference/future/promise/uses_allocator/ below:

class template

<future>

std::uses_allocator<promise>
template <class T, class Alloc>  struct uses_allocator<promise<T>,Alloc>;

Uses allocator for promise

This trait specialization of uses_allocator informs that promise objects can be constructed with allocators, even though the class does not have any allocator_type member. It is defined in the <future> with the same behavior as:

1
2
template <class T, class Alloc>
  struct uses_allocator<promise<T>,Alloc> : true_type {};


See also
uses_allocator
Uses allocator (class template)
promise::promise
Construct promise (public member function)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4