2
0
mirror of https://github.com/boostorg/compute.git synced 2026-01-27 06:42:19 +00:00
Files
compute/doc/reference/container/vector.xml
Kyle Lutz 0ab2fe85eb Don't auto-initialize values in vector
This changes the vector class to not auto-initialize values
when it is created or resized. This improves performance by
eliminating a call to fill(). If needed, user code can call
fill() explicitly on the newly allocated values.
2013-04-27 10:30:26 -04:00

33 lines
1.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<header name="boost/compute/container/vector.hpp">
<namespace name="boost">
<namespace name="compute">
<!-- boost::compute::vector<T, Alloc> -->
<class name="vector">
<purpose>A resizable container</purpose>
<template>
<template-type-parameter name="T">
<purpose>value type</purpose>
</template-type-parameter>
<template-type-parameter name="Alloc">
<default><classname>allocator</classname>&lt;T&gt;</default>
<purpose>allocator type</purpose>
</template-type-parameter>
</template>
<description>
<para>
Note: Unlike <code>std::vector</code>,
<code>boost::compute::vector</code> does not initialize values
when the created or resized. If initialization is needed you must
explicitly call <functionname>fill()</functionname> on the newly
allocated values.
</para>
</description>
</class>
</namespace>
</namespace>
</header>