Boost C++ Libraries

...one 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.
PrevUpHomeNext

Function template dim

boost::compute::dim

Synopsis

// In header: <boost/compute/utility/dim.hpp>


template<class... Args> extents< sizeof...(Args)> dim(Args... args);

Description

The variadic dim() function provides a concise syntax for creating extents objects.

For example,

extents<2> region = dim(640, 480); // region == (640, 480)

See Also:

extents<N>


PrevUpHomeNext