Skip to content
This repository was archived by the owner on Mar 21, 2024. It is now read-only.

Commit ed02b51

Browse files
committed
Deploy Documentation: Enable construction of vectors from std::initializer_list (#1836)
* Enable construction of vectors from `std::initializer_list` 29305f6
1 parent 7c40df8 commit ed02b51

7 files changed

+548
-148
lines changed

api/classes/classthrust_1_1device__vector.md

+42
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,13 @@ A <code><a href="{{ site.baseurl }}/api/classes/classthrust_1_1device__vector.ht
8080
<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;typename OtherAlloc&gt;</span>
8181
<span>&nbsp;&nbsp;<a href="{{ site.baseurl }}/api/classes/classthrust_1_1device__vector.html">device_vector</a> & </span><span>&nbsp;&nbsp;<b><a href="{{ site.baseurl }}/api/classes/classthrust_1_1device__vector.html#function-operator=">operator=</a></b>(const detail::vector_base< OtherT, OtherAlloc > & v);</span>
8282
<br>
83+
<span>&nbsp;&nbsp;<b><a href="{{ site.baseurl }}/api/classes/classthrust_1_1device__vector.html#function-device-vector">device&#95;vector</a></b>(std::initializer_list< T > il);</span>
84+
<br>
85+
<span>&nbsp;&nbsp;<b><a href="{{ site.baseurl }}/api/classes/classthrust_1_1device__vector.html#function-device-vector">device&#95;vector</a></b>(std::initializer_list< T > il,</span>
86+
<span>&nbsp;&nbsp;&nbsp;&nbsp;const Alloc & alloc);</span>
87+
<br>
88+
<span>&nbsp;&nbsp;<a href="{{ site.baseurl }}/api/classes/classthrust_1_1device__vector.html">device_vector</a> & </span><span>&nbsp;&nbsp;<b><a href="{{ site.baseurl }}/api/classes/classthrust_1_1device__vector.html#function-operator=">operator=</a></b>(std::initializer_list< T > il);</span>
89+
<br>
8390
<span>&nbsp;&nbsp;template &lt;typename InputIterator&gt;</span>
8491
<span>&nbsp;&nbsp;<b><a href="{{ site.baseurl }}/api/classes/classthrust_1_1device__vector.html#function-device-vector">device&#95;vector</a></b>(InputIterator first,</span>
8592
<span>&nbsp;&nbsp;&nbsp;&nbsp;InputIterator last);</span>
@@ -324,6 +331,41 @@ Assign a <code>vector&#95;base</code> whose element type is convertible to <code
324331
Function <code>thrust::device&#95;vector::device&#95;vector</code>
325332
</h3>
326333

334+
<code class="doxybook">
335+
<span><b>device_vector</b>(std::initializer_list< T > il);</span></code>
336+
This constructor builds a <code><a href="{{ site.baseurl }}/api/classes/classthrust_1_1device__vector.html">device&#95;vector</a></code> from an intializer_list.
337+
338+
**Function Parameters**:
339+
**`il`**: The intializer_list.
340+
341+
<h3 id="function-device-vector">
342+
Function <code>thrust::device&#95;vector::device&#95;vector</code>
343+
</h3>
344+
345+
<code class="doxybook">
346+
<span><b>device_vector</b>(std::initializer_list< T > il,</span>
347+
<span>&nbsp;&nbsp;const Alloc & alloc);</span></code>
348+
This constructor builds a <code><a href="{{ site.baseurl }}/api/classes/classthrust_1_1device__vector.html">device&#95;vector</a></code> from an intializer_list.
349+
350+
**Function Parameters**:
351+
* **`il`** The intializer_list.
352+
* **`alloc`** The allocator to use by this <a href="{{ site.baseurl }}/api/classes/classthrust_1_1device__vector.html">device_vector</a>.
353+
354+
<h3 id="function-operator=">
355+
Function <code>thrust::device&#95;vector::operator=</code>
356+
</h3>
357+
358+
<code class="doxybook">
359+
<span><a href="{{ site.baseurl }}/api/classes/classthrust_1_1device__vector.html">device_vector</a> & </span><span><b>operator=</b>(std::initializer_list< T > il);</span></code>
360+
Assign an <code>intializer&#95;list</code> with a matching element type
361+
362+
**Function Parameters**:
363+
**`il`**: The intializer_list.
364+
365+
<h3 id="function-device-vector">
366+
Function <code>thrust::device&#95;vector::device&#95;vector</code>
367+
</h3>
368+
327369
<code class="doxybook">
328370
<span>template &lt;typename InputIterator&gt;</span>
329371
<span><b>device_vector</b>(InputIterator first,</span>

0 commit comments

Comments
 (0)