...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::compute::pinned_allocator
// In header: <boost/compute/allocator/pinned_allocator.hpp> template<typename T> class pinned_allocator : public boost::compute::buffer_allocator< T > { public: // construct/copy/destruct explicit pinned_allocator(const context &); pinned_allocator(const pinned_allocator< T > &); pinned_allocator< T > & operator=(const pinned_allocator< T > &); ~pinned_allocator(); };