...one of the most highly regarded and expertly designed C++ library projects in the world. — Herb Sutter and Andrei Alexandrescu, C++ Coding Standards
...one of the most highly regarded and expertly designed C++ library projects in the world.
boost::compute::bind
// In header: <boost/compute/functional/bind.hpp> template<typename F, class... Args> unspecified bind(F f, Args... args);
Description.
Например, для создания неарочного объекта функции, который возвращает Правда когда его аргумент меньше 7:
Правда
7
using boost::compute::less; using boost::compute::placeholders::_1; auto less_than_seven = boost::compute::bind(less<int>(), _1, 7);
Статья Function template bind раздела Chapter 1. Boost.Compute Reference может быть полезна для разработчиков на c++ и boost.
Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта.
:: Главная :: Reference ::
реклама