A property adapter that is used with the polymorphic executor wrapper to mark properties as preferable, but not requirable.
template< typename Property> struct prefer_only
Name |
Description |
---|---|
The type returned by queries against an any_executor. |
Name |
Description |
---|---|
The prefer_only adapter applies to the same types as the nested property. |
|
The context_t property can be preferred, it the underlying property can be preferred. |
|
The context_t property cannot be required. |
Header: asio/execution/prefer_only.hpp
Convenience header: asio/execution.hpp