Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
any_io_executor::prefer (1 of 7 overloads)

Obtain a polymorphic wrapper with the specified property.

    typename Property>
any_io_executor prefer(
    const Property & p,
    typename constraint< traits::prefer_member< const base_type &, const Property & >::is_valid >::type  = 0) const;

Do not call this function directly. It is intended for use with the prefer customisation point.

For example:

any_io_executor ex = ...;
auto ex2 = boost::asio::prefer(ex, execution::blocking.possibly);