diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2019-10-24 15:39:57 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2019-10-24 15:39:57 +0100 |
commit | 5ce55f3ff5d04834e436a72fb2be84b31aa89def (patch) | |
tree | 7b16d64999ebbe045ddfea954e0e9e1131ec6672 /gcc/tree-ssa-loop-ch.c | |
parent | abebffc609506176f8ba3f64533e15ece49446c0 (diff) | |
download | gcc-5ce55f3ff5d04834e436a72fb2be84b31aa89def.zip gcc-5ce55f3ff5d04834e436a72fb2be84b31aa89def.tar.gz gcc-5ce55f3ff5d04834e436a72fb2be84b31aa89def.tar.bz2 |
Simplify common case of use_future_t that uses std::allocator
There is no need to store and pass around the allocator object when it's
an instance of std::allocator. Define a partial specialization of
std::use_future_t and the corresponding completion token so that no
allocator is stored. Overload the completion handler constructor to not
expect an allocator to be stored.
* include/experimental/executor (__use_future_ct, use_future_t):
Define partial specializations for std::allocator.
(__use_future_ch): Overload constructor for completion tokens using
std::allocator.
From-SVN: r277404
Diffstat (limited to 'gcc/tree-ssa-loop-ch.c')
0 files changed, 0 insertions, 0 deletions