mirror of
https://github.com/boostorg/compute.git
synced 2026-01-28 19:12:15 +00:00
This adds a get<N>() function which returns the n'th element of an aggregate type (e.g. vector type, pair, tuple). This unifies the functionality of, and replaces, the get_pair() and vector_component() functions.
24 lines
655 B
XML
24 lines
655 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<header name="boost/compute/functional/get.hpp">
|
|
<namespace name="boost">
|
|
<namespace name="compute">
|
|
|
|
<!-- boost::compute::get<N> -->
|
|
<struct name="get">
|
|
<template>
|
|
<template-nontype-parameter name="N">
|
|
<type>size_t</type>
|
|
</template-nontype-parameter>
|
|
</template>
|
|
|
|
<description>
|
|
<para>
|
|
The <code>get</code> function returns the <code>N</code>'th
|
|
element of an aggregate type (e.g. vector type, pair, tuple).
|
|
</para>
|
|
</description>
|
|
</struct>
|
|
</namespace>
|
|
</namespace>
|
|
</header>
|