Skip to content

futures::is_always_deferred

Futures / Future Traits / is_always_deferred

Defined in header <futures/traits/is_always_deferred.hpp>

template <typename> 
struct is_always_deferred;

Customization point to define a future as always deferred.

Description

Deferred futures allow optimizations that make it worth indicating at compile time whether they can be applied. They can carry their tasks, avoid dynamic memory allocations, and attach continuations without any extra synchronization cost.

Unless this trait is specialized, a type is considered to not be always deferred.

Inherits from std::false_type


Updated on 2023-01-04