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

Commit

Permalink
Deploy Documentation: Enable construction of vectors from `std::initi…
Browse files Browse the repository at this point in the history
…alizer_list` (#1836)

* Enable construction of vectors from `std::initializer_list` 29305f6
  • Loading branch information
miscco committed Feb 21, 2023
1 parent 7c40df8 commit ed02b51
Show file tree
Hide file tree
Showing 7 changed files with 548 additions and 148 deletions.
42 changes: 42 additions & 0 deletions api/classes/classthrust_1_1device__vector.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,13 @@ A <code><a href="{{ site.baseurl }}/api/classes/classthrust_1_1device__vector.ht
<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;typename OtherAlloc&gt;</span>
<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>
<br>
<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>
<br>
<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>
<span>&nbsp;&nbsp;&nbsp;&nbsp;const Alloc & alloc);</span>
<br>
<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>
<br>
<span>&nbsp;&nbsp;template &lt;typename InputIterator&gt;</span>
<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>
<span>&nbsp;&nbsp;&nbsp;&nbsp;InputIterator last);</span>
Expand Down Expand Up @@ -324,6 +331,41 @@ Assign a <code>vector&#95;base</code> whose element type is convertible to <code
Function <code>thrust::device&#95;vector::device&#95;vector</code>
</h3>

<code class="doxybook">
<span><b>device_vector</b>(std::initializer_list< T > il);</span></code>
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.

**Function Parameters**:
**`il`**: The intializer_list.

<h3 id="function-device-vector">
Function <code>thrust::device&#95;vector::device&#95;vector</code>
</h3>

<code class="doxybook">
<span><b>device_vector</b>(std::initializer_list< T > il,</span>
<span>&nbsp;&nbsp;const Alloc & alloc);</span></code>
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.

**Function Parameters**:
* **`il`** The intializer_list.
* **`alloc`** The allocator to use by this <a href="{{ site.baseurl }}/api/classes/classthrust_1_1device__vector.html">device_vector</a>.

<h3 id="function-operator=">
Function <code>thrust::device&#95;vector::operator=</code>
</h3>

<code class="doxybook">
<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>
Assign an <code>intializer&#95;list</code> with a matching element type

**Function Parameters**:
**`il`**: The intializer_list.

<h3 id="function-device-vector">
Function <code>thrust::device&#95;vector::device&#95;vector</code>
</h3>

<code class="doxybook">
<span>template &lt;typename InputIterator&gt;</span>
<span><b>device_vector</b>(InputIterator first,</span>
Expand Down
Loading

0 comments on commit ed02b51

Please sign in to comment.