mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-14 15:04:09 +00:00
add index_tuple summary page
This commit is contained in:
parent
2d707944fb
commit
e57368faee
473 changed files with 2597 additions and 1293 deletions
|
@ -108,7 +108,7 @@
|
|||
<div class="body">
|
||||
|
||||
<div class="section" id="assign">
|
||||
<h1>assign<a class="headerlink" href="#assign" title="Permalink to this headline">¶</a></h1>
|
||||
<span id="sprout-array-array-assign"></span><h1>assign<a class="headerlink" href="#assign" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="kt">void</span> <span class="n">assign</span><span class="p">(</span><span class="n">const_reference</span> <span class="n">value</span><span class="p">);</span>
|
||||
|
|
|
@ -108,7 +108,7 @@
|
|||
<div class="body">
|
||||
|
||||
<div class="section" id="at">
|
||||
<h1>at<a class="headerlink" href="#at" title="Permalink to this headline">¶</a></h1>
|
||||
<span id="sprout-array-array-at"></span><h1>at<a class="headerlink" href="#at" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">reference</span> <span class="n">at</span><span class="p">(</span><span class="n">size_type</span> <span class="n">n</span><span class="p">);</span>
|
||||
|
|
|
@ -107,7 +107,7 @@
|
|||
<div class="body">
|
||||
|
||||
<div class="section" id="back">
|
||||
<h1>back<a class="headerlink" href="#back" title="Permalink to this headline">¶</a></h1>
|
||||
<span id="sprout-array-array-back"></span><h1>back<a class="headerlink" href="#back" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">reference</span> <span class="n">back</span><span class="p">();</span>
|
||||
|
|
|
@ -107,7 +107,7 @@
|
|||
<div class="body">
|
||||
|
||||
<div class="section" id="begin">
|
||||
<h1>begin<a class="headerlink" href="#begin" title="Permalink to this headline">¶</a></h1>
|
||||
<span id="sprout-array-array-begin"></span><h1>begin<a class="headerlink" href="#begin" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">iterator</span> <span class="n">begin</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
|
|
|
@ -107,7 +107,7 @@
|
|||
<div class="body">
|
||||
|
||||
<div class="section" id="c-array">
|
||||
<h1>c_array<a class="headerlink" href="#c-array" title="Permalink to this headline">¶</a></h1>
|
||||
<span id="sprout-array-array-c-array"></span><h1>c_array<a class="headerlink" href="#c-array" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">pointer</span> <span class="n">c_array</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
|
|
|
@ -107,7 +107,7 @@
|
|||
<div class="body">
|
||||
|
||||
<div class="section" id="cbegin">
|
||||
<h1>cbegin<a class="headerlink" href="#cbegin" title="Permalink to this headline">¶</a></h1>
|
||||
<span id="sprout-array-array-cbegin"></span><h1>cbegin<a class="headerlink" href="#cbegin" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">SPROUT_CONSTEXPR</span> <span class="n">const_iterator</span> <span class="n">cbegin</span><span class="p">()</span> <span class="k">const</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
|
|
|
@ -107,7 +107,7 @@
|
|||
<div class="body">
|
||||
|
||||
<div class="section" id="cend">
|
||||
<h1>cend<a class="headerlink" href="#cend" title="Permalink to this headline">¶</a></h1>
|
||||
<span id="sprout-array-array-cend"></span><h1>cend<a class="headerlink" href="#cend" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">SPROUT_CONSTEXPR</span> <span class="n">const_iterator</span> <span class="n">cend</span><span class="p">()</span> <span class="k">const</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
|
|
|
@ -107,7 +107,7 @@
|
|||
<div class="body">
|
||||
|
||||
<div class="section" id="crbegin">
|
||||
<h1>crbegin<a class="headerlink" href="#crbegin" title="Permalink to this headline">¶</a></h1>
|
||||
<span id="sprout-array-array-crbegin"></span><h1>crbegin<a class="headerlink" href="#crbegin" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">SPROUT_CONSTEXPR</span> <span class="n">const_reverse_iterator</span> <span class="n">crbegin</span><span class="p">()</span> <span class="k">const</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
|
|
|
@ -107,7 +107,7 @@
|
|||
<div class="body">
|
||||
|
||||
<div class="section" id="crend">
|
||||
<h1>crend<a class="headerlink" href="#crend" title="Permalink to this headline">¶</a></h1>
|
||||
<span id="sprout-array-array-crend"></span><h1>crend<a class="headerlink" href="#crend" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">SPROUT_CONSTEXPR</span> <span class="n">const_reverse_iterator</span> <span class="n">crend</span><span class="p">()</span> <span class="k">const</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
|
|
|
@ -107,7 +107,7 @@
|
|||
<div class="body">
|
||||
|
||||
<div class="section" id="data">
|
||||
<h1>data<a class="headerlink" href="#data" title="Permalink to this headline">¶</a></h1>
|
||||
<span id="sprout-array-array-data"></span><h1>data<a class="headerlink" href="#data" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">pointer</span> <span class="n">data</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
|
|
|
@ -107,7 +107,7 @@
|
|||
<div class="body">
|
||||
|
||||
<div class="section" id="empty">
|
||||
<h1>empty<a class="headerlink" href="#empty" title="Permalink to this headline">¶</a></h1>
|
||||
<span id="sprout-array-array-empty"></span><h1>empty<a class="headerlink" href="#empty" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">SPROUT_CONSTEXPR</span> <span class="kt">bool</span> <span class="n">empty</span><span class="p">()</span> <span class="k">const</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
|
|
|
@ -107,7 +107,7 @@
|
|||
<div class="body">
|
||||
|
||||
<div class="section" id="end">
|
||||
<h1>end<a class="headerlink" href="#end" title="Permalink to this headline">¶</a></h1>
|
||||
<span id="sprout-array-array-end"></span><h1>end<a class="headerlink" href="#end" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">iterator</span> <span class="n">end</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
|
|
|
@ -108,7 +108,7 @@
|
|||
<div class="body">
|
||||
|
||||
<div class="section" id="fill">
|
||||
<h1>fill<a class="headerlink" href="#fill" title="Permalink to this headline">¶</a></h1>
|
||||
<span id="sprout-array-array-fill"></span><h1>fill<a class="headerlink" href="#fill" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="kt">void</span> <span class="n">fill</span><span class="p">(</span><span class="n">const_reference</span> <span class="n">value</span><span class="p">);</span>
|
||||
|
|
|
@ -107,7 +107,7 @@
|
|||
<div class="body">
|
||||
|
||||
<div class="section" id="front">
|
||||
<h1>front<a class="headerlink" href="#front" title="Permalink to this headline">¶</a></h1>
|
||||
<span id="sprout-array-array-front"></span><h1>front<a class="headerlink" href="#front" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">reference</span> <span class="n">front</span><span class="p">();</span>
|
||||
|
|
|
@ -107,7 +107,7 @@
|
|||
<div class="body">
|
||||
|
||||
<div class="section" id="hash-value">
|
||||
<h1>hash_value<a class="headerlink" href="#hash-value" title="Permalink to this headline">¶</a></h1>
|
||||
<span id="sprout-array-array-hash-value"></span><h1>hash_value<a class="headerlink" href="#hash-value" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="k">template</span><span class="o"><</span><span class="k">typename</span> <span class="n">T</span><span class="p">,</span> <span class="n">std</span><span class="o">::</span><span class="n">size_t</span> <span class="n">N</span><span class="o">></span>
|
||||
|
|
|
@ -117,7 +117,7 @@
|
|||
<div class="body">
|
||||
|
||||
<div class="section" id="array">
|
||||
<h1>array<a class="headerlink" href="#array" title="Permalink to this headline">¶</a></h1>
|
||||
<span id="sprout-array-array"></span><h1>array<a class="headerlink" href="#array" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="toctree-wrapper compound">
|
||||
</div>
|
||||
<div class="section" id="interface">
|
||||
|
@ -133,9 +133,9 @@
|
|||
<h3>Member types<a class="headerlink" href="#member-types" title="Permalink to this headline">¶</a></h3>
|
||||
<table border="1" class="docutils">
|
||||
<colgroup>
|
||||
<col width="25%" />
|
||||
<col width="50%" />
|
||||
<col width="25%" />
|
||||
<col width="33%" />
|
||||
<col width="33%" />
|
||||
<col width="33%" />
|
||||
</colgroup>
|
||||
<thead valign="bottom">
|
||||
<tr class="row-odd"><th class="head">type</th>
|
||||
|
@ -154,8 +154,11 @@
|
|||
</tr>
|
||||
<tr class="row-even"><td>iterator</td>
|
||||
<td><strong>ConstexprRandomAccessIterator</strong></td>
|
||||
<td>convertible to const_iterator,
|
||||
convertible to pointer</td>
|
||||
<td><div class="first last line-block">
|
||||
<div class="line">convertible to const_iterator
|
||||
convertible to pointer</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td>const_iterator</td>
|
||||
<td><strong>ConstexprRandomAccessIterator</strong></td>
|
||||
|
@ -182,13 +185,19 @@ convertible to pointer</td>
|
|||
<td> </td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td>reverse_iterator</td>
|
||||
<td>sprout::reverse_iterator<iterator>,
|
||||
<strong>ConstexprRandomAccessIterator</strong></td>
|
||||
<td><div class="first last line-block">
|
||||
<div class="line">sprout::reverse_iterator<iterator>
|
||||
<strong>ConstexprRandomAccessIterator</strong></div>
|
||||
</div>
|
||||
</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr class="row-even"><td>const_reverse_iterator</td>
|
||||
<td>sprout::reverse_iterator<const_iterator>,
|
||||
<strong>ConstexprRandomAccessIterator</strong></td>
|
||||
<td><div class="first last line-block">
|
||||
<div class="line">sprout::reverse_iterator<const_iterator>
|
||||
<strong>ConstexprRandomAccessIterator</strong></div>
|
||||
</div>
|
||||
</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
@ -200,8 +209,8 @@ convertible to pointer</td>
|
|||
<h4>(initializer)<a class="headerlink" href="#initializer" title="Permalink to this headline">¶</a></h4>
|
||||
<table border="1" class="docutils">
|
||||
<colgroup>
|
||||
<col width="34%" />
|
||||
<col width="66%" />
|
||||
<col width="33%" />
|
||||
<col width="67%" />
|
||||
</colgroup>
|
||||
<thead valign="bottom">
|
||||
<tr class="row-odd"><th class="head">function</th>
|
||||
|
@ -219,8 +228,8 @@ convertible to pointer</td>
|
|||
<h4>construct/copy/destroy<a class="headerlink" href="#construct-copy-destroy" title="Permalink to this headline">¶</a></h4>
|
||||
<table border="1" class="docutils">
|
||||
<colgroup>
|
||||
<col width="34%" />
|
||||
<col width="66%" />
|
||||
<col width="33%" />
|
||||
<col width="67%" />
|
||||
</colgroup>
|
||||
<thead valign="bottom">
|
||||
<tr class="row-odd"><th class="head">function</th>
|
||||
|
@ -238,8 +247,8 @@ convertible to pointer</td>
|
|||
<h4>modifiers<a class="headerlink" href="#modifiers" title="Permalink to this headline">¶</a></h4>
|
||||
<table border="1" class="docutils">
|
||||
<colgroup>
|
||||
<col width="34%" />
|
||||
<col width="66%" />
|
||||
<col width="33%" />
|
||||
<col width="67%" />
|
||||
</colgroup>
|
||||
<thead valign="bottom">
|
||||
<tr class="row-odd"><th class="head">function</th>
|
||||
|
@ -263,8 +272,8 @@ convertible to pointer</td>
|
|||
<h4>iterators<a class="headerlink" href="#iterators" title="Permalink to this headline">¶</a></h4>
|
||||
<table border="1" class="docutils">
|
||||
<colgroup>
|
||||
<col width="34%" />
|
||||
<col width="66%" />
|
||||
<col width="33%" />
|
||||
<col width="67%" />
|
||||
</colgroup>
|
||||
<thead valign="bottom">
|
||||
<tr class="row-odd"><th class="head">function</th>
|
||||
|
@ -303,8 +312,8 @@ convertible to pointer</td>
|
|||
<h4>capacity<a class="headerlink" href="#capacity" title="Permalink to this headline">¶</a></h4>
|
||||
<table border="1" class="docutils">
|
||||
<colgroup>
|
||||
<col width="34%" />
|
||||
<col width="66%" />
|
||||
<col width="33%" />
|
||||
<col width="67%" />
|
||||
</colgroup>
|
||||
<thead valign="bottom">
|
||||
<tr class="row-odd"><th class="head">function</th>
|
||||
|
@ -328,8 +337,8 @@ convertible to pointer</td>
|
|||
<h4>element access<a class="headerlink" href="#element-access" title="Permalink to this headline">¶</a></h4>
|
||||
<table border="1" class="docutils">
|
||||
<colgroup>
|
||||
<col width="34%" />
|
||||
<col width="66%" />
|
||||
<col width="33%" />
|
||||
<col width="67%" />
|
||||
</colgroup>
|
||||
<thead valign="bottom">
|
||||
<tr class="row-odd"><th class="head">function</th>
|
||||
|
|
|
@ -106,7 +106,7 @@
|
|||
<div class="body">
|
||||
|
||||
<div class="section" id="initializer">
|
||||
<h1>(initializer)<a class="headerlink" href="#initializer" title="Permalink to this headline">¶</a></h1>
|
||||
<span id="sprout-array-array-initializer"></span><h1>(initializer)<a class="headerlink" href="#initializer" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="remarks">
|
||||
<h2>Remarks<a class="headerlink" href="#remarks" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="line-block">
|
||||
|
|
|
@ -107,7 +107,7 @@
|
|||
<div class="body">
|
||||
|
||||
<div class="section" id="max-size">
|
||||
<h1>max_size<a class="headerlink" href="#max-size" title="Permalink to this headline">¶</a></h1>
|
||||
<span id="sprout-array-array-max-size"></span><h1>max_size<a class="headerlink" href="#max-size" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">SPROUT_CONSTEXPR</span> <span class="n">size_type</span> <span class="n">max_size</span><span class="p">()</span> <span class="k">const</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
|
|
|
@ -107,7 +107,7 @@
|
|||
<div class="body">
|
||||
|
||||
<div class="section" id="operator">
|
||||
<h1>operator=<a class="headerlink" href="#operator" title="Permalink to this headline">¶</a></h1>
|
||||
<span id="sprout-array-array-operator-assign"></span><h1>operator=<a class="headerlink" href="#operator" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="k">template</span><span class="o"><</span><span class="k">typename</span> <span class="n">T2</span><span class="o">></span>
|
||||
|
|
|
@ -106,7 +106,7 @@
|
|||
<div class="body">
|
||||
|
||||
<div class="section" id="operator">
|
||||
<h1>operator==<a class="headerlink" href="#operator" title="Permalink to this headline">¶</a></h1>
|
||||
<span id="sprout-array-array-operator-equal-to"></span><h1>operator==<a class="headerlink" href="#operator" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="k">template</span><span class="o"><</span><span class="k">typename</span> <span class="n">T</span><span class="p">,</span> <span class="n">std</span><span class="o">::</span><span class="n">size_t</span> <span class="n">N</span><span class="o">></span>
|
||||
|
|
|
@ -106,7 +106,7 @@
|
|||
<div class="body">
|
||||
|
||||
<div class="section" id="operator">
|
||||
<h1>operator><a class="headerlink" href="#operator" title="Permalink to this headline">¶</a></h1>
|
||||
<span id="sprout-array-array-operator-greater"></span><h1>operator><a class="headerlink" href="#operator" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="k">template</span><span class="o"><</span><span class="k">typename</span> <span class="n">T</span><span class="p">,</span> <span class="n">std</span><span class="o">::</span><span class="n">size_t</span> <span class="n">N</span><span class="o">></span>
|
||||
|
|
|
@ -106,7 +106,7 @@
|
|||
<div class="body">
|
||||
|
||||
<div class="section" id="operator">
|
||||
<h1>operator>=<a class="headerlink" href="#operator" title="Permalink to this headline">¶</a></h1>
|
||||
<span id="sprout-array-array-operator-greater-equal"></span><h1>operator>=<a class="headerlink" href="#operator" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="k">template</span><span class="o"><</span><span class="k">typename</span> <span class="n">T</span><span class="p">,</span> <span class="n">std</span><span class="o">::</span><span class="n">size_t</span> <span class="n">N</span><span class="o">></span>
|
||||
|
|
|
@ -106,7 +106,7 @@
|
|||
<div class="body">
|
||||
|
||||
<div class="section" id="operator">
|
||||
<h1>operator<<a class="headerlink" href="#operator" title="Permalink to this headline">¶</a></h1>
|
||||
<span id="sprout-array-array-operator-less"></span><h1>operator<<a class="headerlink" href="#operator" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="k">template</span><span class="o"><</span><span class="k">typename</span> <span class="n">T</span><span class="p">,</span> <span class="n">std</span><span class="o">::</span><span class="n">size_t</span> <span class="n">N</span><span class="o">></span>
|
||||
|
|
|
@ -106,7 +106,7 @@
|
|||
<div class="body">
|
||||
|
||||
<div class="section" id="operator">
|
||||
<h1>operator<=<a class="headerlink" href="#operator" title="Permalink to this headline">¶</a></h1>
|
||||
<span id="sprout-array-array-operator-less-equal"></span><h1>operator<=<a class="headerlink" href="#operator" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="k">template</span><span class="o"><</span><span class="k">typename</span> <span class="n">T</span><span class="p">,</span> <span class="n">std</span><span class="o">::</span><span class="n">size_t</span> <span class="n">N</span><span class="o">></span>
|
||||
|
|
|
@ -106,7 +106,7 @@
|
|||
<div class="body">
|
||||
|
||||
<div class="section" id="operator">
|
||||
<h1>operator!=<a class="headerlink" href="#operator" title="Permalink to this headline">¶</a></h1>
|
||||
<span id="sprout-array-array-operator-not-equal-to"></span><h1>operator!=<a class="headerlink" href="#operator" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="k">template</span><span class="o"><</span><span class="k">typename</span> <span class="n">T</span><span class="p">,</span> <span class="n">std</span><span class="o">::</span><span class="n">size_t</span> <span class="n">N</span><span class="o">></span>
|
||||
|
|
|
@ -108,7 +108,7 @@
|
|||
<div class="body">
|
||||
|
||||
<div class="section" id="operator">
|
||||
<h1>operator[]<a class="headerlink" href="#operator" title="Permalink to this headline">¶</a></h1>
|
||||
<span id="sprout-array-array-operator-subscript"></span><h1>operator[]<a class="headerlink" href="#operator" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">reference</span> <span class="k">operator</span><span class="p">[](</span><span class="n">size_type</span> <span class="n">n</span><span class="p">);</span>
|
||||
|
|
|
@ -107,7 +107,7 @@
|
|||
<div class="body">
|
||||
|
||||
<div class="section" id="rbegin">
|
||||
<h1>rbegin<a class="headerlink" href="#rbegin" title="Permalink to this headline">¶</a></h1>
|
||||
<span id="sprout-array-array-rbegin"></span><h1>rbegin<a class="headerlink" href="#rbegin" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">reverse_iterator</span> <span class="n">rbegin</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
|
|
|
@ -107,7 +107,7 @@
|
|||
<div class="body">
|
||||
|
||||
<div class="section" id="rend">
|
||||
<h1>rend<a class="headerlink" href="#rend" title="Permalink to this headline">¶</a></h1>
|
||||
<span id="sprout-array-array-rend"></span><h1>rend<a class="headerlink" href="#rend" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="n">reverse_iterator</span> <span class="n">rend</span><span class="p">()</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
|
|
|
@ -107,7 +107,7 @@
|
|||
<div class="body">
|
||||
|
||||
<div class="section" id="size">
|
||||
<h1>size<a class="headerlink" href="#size" title="Permalink to this headline">¶</a></h1>
|
||||
<span id="sprout-array-array-size"></span><h1>size<a class="headerlink" href="#size" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">SPROUT_CONSTEXPR</span> <span class="n">size_type</span> <span class="n">size</span><span class="p">()</span> <span class="k">const</span> <span class="n">SPROUT_NOEXCEPT</span><span class="p">;</span>
|
||||
|
|
|
@ -108,7 +108,7 @@
|
|||
<div class="body">
|
||||
|
||||
<div class="section" id="std-hash">
|
||||
<h1>std::hash<a class="headerlink" href="#std-hash" title="Permalink to this headline">¶</a></h1>
|
||||
<span id="sprout-array-array-std-hash"></span><h1>std::hash<a class="headerlink" href="#std-hash" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="k">namespace</span> <span class="n">std</span> <span class="p">{</span>
|
||||
|
|
|
@ -106,7 +106,7 @@
|
|||
<div class="body">
|
||||
|
||||
<div class="section" id="std-tuple-element">
|
||||
<h1>std::tuple_element<a class="headerlink" href="#std-tuple-element" title="Permalink to this headline">¶</a></h1>
|
||||
<span id="sprout-array-array-std-tuple-element"></span><h1>std::tuple_element<a class="headerlink" href="#std-tuple-element" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="k">namespace</span> <span class="n">std</span> <span class="p">{</span>
|
||||
|
|
|
@ -106,7 +106,7 @@
|
|||
<div class="body">
|
||||
|
||||
<div class="section" id="std-tuple-size">
|
||||
<h1>std::tuple_size<a class="headerlink" href="#std-tuple-size" title="Permalink to this headline">¶</a></h1>
|
||||
<span id="sprout-array-array-std-tuple-size"></span><h1>std::tuple_size<a class="headerlink" href="#std-tuple-size" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="k">namespace</span> <span class="n">std</span> <span class="p">{</span>
|
||||
|
|
|
@ -107,7 +107,7 @@
|
|||
<div class="body">
|
||||
|
||||
<div class="section" id="swap">
|
||||
<h1>swap<a class="headerlink" href="#swap" title="Permalink to this headline">¶</a></h1>
|
||||
<span id="sprout-array-array-swap-global"></span><h1>swap<a class="headerlink" href="#swap" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="k">template</span><span class="o"><</span><span class="k">typename</span> <span class="n">T</span><span class="p">,</span> <span class="n">std</span><span class="o">::</span><span class="n">size_t</span> <span class="n">N</span><span class="o">></span>
|
||||
|
|
|
@ -108,7 +108,7 @@
|
|||
<div class="body">
|
||||
|
||||
<div class="section" id="swap">
|
||||
<h1>swap<a class="headerlink" href="#swap" title="Permalink to this headline">¶</a></h1>
|
||||
<span id="sprout-array-array-swap"></span><h1>swap<a class="headerlink" href="#swap" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="n">SPROUT_CXX14_CONSTEXPR</span> <span class="kt">void</span> <span class="n">swap</span><span class="p">(</span><span class="n">array</span><span class="o">&</span> <span class="n">other</span><span class="p">)</span> <span class="n">SPROUT_NOEXCEPT_EXPR</span><span class="p">(</span><span class="n">SPROUT_NOEXCEPT_EXPR</span><span class="p">(</span><span class="n">std</span><span class="o">::</span><span class="n">swap</span><span class="p">(</span><span class="n">std</span><span class="o">::</span><span class="n">declval</span><span class="o"><</span><span class="n">T</span><span class="o">&></span><span class="p">(),</span> <span class="n">std</span><span class="o">::</span><span class="n">declval</span><span class="o"><</span><span class="n">T</span><span class="o">&></span><span class="p">())));</span>
|
||||
|
|
|
@ -108,7 +108,7 @@
|
|||
<div class="body">
|
||||
|
||||
<div class="section" id="tuple-get">
|
||||
<h1>tuple_get<a class="headerlink" href="#tuple-get" title="Permalink to this headline">¶</a></h1>
|
||||
<span id="sprout-array-array-tuple-get"></span><h1>tuple_get<a class="headerlink" href="#tuple-get" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="k">template</span><span class="o"><</span><span class="n">std</span><span class="o">::</span><span class="n">size_t</span> <span class="n">I</span><span class="p">,</span> <span class="k">typename</span> <span class="n">T</span><span class="p">,</span> <span class="n">std</span><span class="o">::</span><span class="n">size_t</span> <span class="n">N</span><span class="o">></span>
|
||||
|
|
|
@ -112,8 +112,8 @@
|
|||
<div class="bodywrapper">
|
||||
<div class="body">
|
||||
|
||||
<div class="section" id="id1">
|
||||
<h1>Sprout.Array<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="sprout-array">
|
||||
<span id="id1"></span><h1>Sprout.Array<a class="headerlink" href="#sprout-array" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="toctree-wrapper compound">
|
||||
</div>
|
||||
<div class="section" id="description">
|
||||
|
@ -122,8 +122,8 @@
|
|||
<h3>Classes<a class="headerlink" href="#classes" title="Permalink to this headline">¶</a></h3>
|
||||
<table border="1" class="docutils">
|
||||
<colgroup>
|
||||
<col width="34%" />
|
||||
<col width="66%" />
|
||||
<col width="33%" />
|
||||
<col width="67%" />
|
||||
</colgroup>
|
||||
<thead valign="bottom">
|
||||
<tr class="row-odd"><th class="head">class</th>
|
||||
|
@ -143,8 +143,8 @@
|
|||
<h4>specialized algorithms<a class="headerlink" href="#specialized-algorithms" title="Permalink to this headline">¶</a></h4>
|
||||
<table border="1" class="docutils">
|
||||
<colgroup>
|
||||
<col width="34%" />
|
||||
<col width="66%" />
|
||||
<col width="33%" />
|
||||
<col width="67%" />
|
||||
</colgroup>
|
||||
<thead valign="bottom">
|
||||
<tr class="row-odd"><th class="head">function</th>
|
||||
|
@ -162,8 +162,8 @@
|
|||
<h4>comparisons<a class="headerlink" href="#comparisons" title="Permalink to this headline">¶</a></h4>
|
||||
<table border="1" class="docutils">
|
||||
<colgroup>
|
||||
<col width="43%" />
|
||||
<col width="57%" />
|
||||
<col width="33%" />
|
||||
<col width="67%" />
|
||||
</colgroup>
|
||||
<thead valign="bottom">
|
||||
<tr class="row-odd"><th class="head">function</th>
|
||||
|
@ -196,8 +196,8 @@
|
|||
<h4>array generators<a class="headerlink" href="#array-generators" title="Permalink to this headline">¶</a></h4>
|
||||
<table border="1" class="docutils">
|
||||
<colgroup>
|
||||
<col width="43%" />
|
||||
<col width="57%" />
|
||||
<col width="33%" />
|
||||
<col width="67%" />
|
||||
</colgroup>
|
||||
<thead valign="bottom">
|
||||
<tr class="row-odd"><th class="head">function</th>
|
||||
|
@ -211,7 +211,10 @@
|
|||
<tr class="row-odd"><td><a class="reference internal" href="make_array.html"><em>make_array</em></a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><a class="reference internal" href="make_common_array.html"><em>make_common_array</em></a></td>
|
||||
<tr class="row-even"><td><a class="reference internal" href="make_array_without_narrowing.html"><em>make_array_without_narrowing</em></a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td><a class="reference internal" href="make_common_array.html"><em>make_common_array</em></a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
@ -222,8 +225,8 @@
|
|||
<h3>Tuple interface<a class="headerlink" href="#tuple-interface" title="Permalink to this headline">¶</a></h3>
|
||||
<table border="1" class="docutils">
|
||||
<colgroup>
|
||||
<col width="43%" />
|
||||
<col width="57%" />
|
||||
<col width="33%" />
|
||||
<col width="67%" />
|
||||
</colgroup>
|
||||
<thead valign="bottom">
|
||||
<tr class="row-odd"><th class="head">matafunction</th>
|
||||
|
@ -241,8 +244,8 @@
|
|||
</table>
|
||||
<table border="1" class="docutils">
|
||||
<colgroup>
|
||||
<col width="43%" />
|
||||
<col width="57%" />
|
||||
<col width="33%" />
|
||||
<col width="67%" />
|
||||
</colgroup>
|
||||
<thead valign="bottom">
|
||||
<tr class="row-odd"><th class="head">function</th>
|
||||
|
@ -260,8 +263,8 @@
|
|||
<h3>Hash support<a class="headerlink" href="#hash-support" title="Permalink to this headline">¶</a></h3>
|
||||
<table border="1" class="docutils">
|
||||
<colgroup>
|
||||
<col width="43%" />
|
||||
<col width="57%" />
|
||||
<col width="33%" />
|
||||
<col width="67%" />
|
||||
</colgroup>
|
||||
<thead valign="bottom">
|
||||
<tr class="row-odd"><th class="head">class</th>
|
||||
|
@ -276,8 +279,8 @@
|
|||
</table>
|
||||
<table border="1" class="docutils">
|
||||
<colgroup>
|
||||
<col width="34%" />
|
||||
<col width="66%" />
|
||||
<col width="33%" />
|
||||
<col width="67%" />
|
||||
</colgroup>
|
||||
<thead valign="bottom">
|
||||
<tr class="row-odd"><th class="head">function</th>
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
<script type="text/javascript" src="../../_static/doctools.js"></script>
|
||||
<link rel="top" title="Sprout 1.0 documentation" href="../../index.html" />
|
||||
<link rel="up" title="Sprout.Array" href="index.html" />
|
||||
<link rel="next" title="make_common_array" href="make_common_array.html" />
|
||||
<link rel="next" title="make_array_without_narrowing" href="make_array_without_narrowing.html" />
|
||||
<link rel="prev" title="to_array" href="to_array.html" />
|
||||
</head>
|
||||
<body>
|
||||
|
@ -49,7 +49,7 @@
|
|||
<a href="../../genindex.html" title="General Index"
|
||||
accesskey="I">index</a></li>
|
||||
<li class="right" >
|
||||
<a href="make_common_array.html" title="make_common_array"
|
||||
<a href="make_array_without_narrowing.html" title="make_array_without_narrowing"
|
||||
accesskey="N">next</a> |</li>
|
||||
<li class="right" >
|
||||
<a href="to_array.html" title="to_array"
|
||||
|
@ -78,8 +78,8 @@
|
|||
<p class="topless"><a href="to_array.html"
|
||||
title="previous chapter">to_array</a></p>
|
||||
<h4>Next topic</h4>
|
||||
<p class="topless"><a href="make_common_array.html"
|
||||
title="next chapter">make_common_array</a></p>
|
||||
<p class="topless"><a href="make_array_without_narrowing.html"
|
||||
title="next chapter">make_array_without_narrowing</a></p>
|
||||
<h3>This Page</h3>
|
||||
<ul class="this-page-menu">
|
||||
<li><a href="../../_sources/libs/array/make_array.txt"
|
||||
|
@ -107,7 +107,7 @@
|
|||
<div class="body">
|
||||
|
||||
<div class="section" id="make-array">
|
||||
<h1>make_array<a class="headerlink" href="#make-array" title="Permalink to this headline">¶</a></h1>
|
||||
<span id="sprout-array-make-array"></span><h1>make_array<a class="headerlink" href="#make-array" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="k">template</span><span class="o"><</span><span class="k">typename</span> <span class="n">T</span><span class="p">,</span> <span class="k">typename</span><span class="p">...</span> <span class="n">Types</span><span class="o">></span>
|
||||
|
@ -131,6 +131,9 @@
|
|||
<div class="line-block">
|
||||
<div class="line">A first version needs to be specified in the template parameters explicitly type T of the elements in the array.</div>
|
||||
<div class="line">And, the type of the elements in the array is a decayed common type of all arguments in the second version.</div>
|
||||
<div class="line"><br /></div>
|
||||
<div class="line">Narrowing conversion is <strong>not</strong> prohibited in this make_array function. (It behaves like a static_cast)</div>
|
||||
<div class="line">If you want to prohibit narrowing conversion, use <a class="reference internal" href="make_array_without_narrowing.html"><em>make_array_without_narrowing</em></a> function.</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="section" id="examples">
|
||||
|
@ -170,7 +173,7 @@
|
|||
<a href="../../genindex.html" title="General Index"
|
||||
>index</a></li>
|
||||
<li class="right" >
|
||||
<a href="make_common_array.html" title="make_common_array"
|
||||
<a href="make_array_without_narrowing.html" title="make_array_without_narrowing"
|
||||
>next</a> |</li>
|
||||
<li class="right" >
|
||||
<a href="to_array.html" title="to_array"
|
||||
|
|
190
docs/libs/array/make_array_without_narrowing.html
Normal file
190
docs/libs/array/make_array_without_narrowing.html
Normal file
|
@ -0,0 +1,190 @@
|
|||
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<script type="text/javascript">
|
||||
|
||||
var _gaq = _gaq || [];
|
||||
_gaq.push(['_setAccount', 'UA-43764535-1']);
|
||||
_gaq.push(['_trackPageview']);
|
||||
|
||||
(function() {
|
||||
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
||||
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
||||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
||||
})();
|
||||
</script>
|
||||
<title>make_array_without_narrowing — Sprout 1.0 documentation</title>
|
||||
|
||||
<link rel="stylesheet" href="../../_static/sphinxdoc.css" type="text/css" />
|
||||
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT: '../../',
|
||||
VERSION: '1.0',
|
||||
COLLAPSE_INDEX: false,
|
||||
FILE_SUFFIX: '.html',
|
||||
HAS_SOURCE: true
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" src="../../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../../_static/doctools.js"></script>
|
||||
<link rel="top" title="Sprout 1.0 documentation" href="../../index.html" />
|
||||
<link rel="up" title="Sprout.Array" href="index.html" />
|
||||
<link rel="next" title="make_common_array" href="make_common_array.html" />
|
||||
<link rel="prev" title="make_array" href="make_array.html" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="related">
|
||||
<h3>Navigation</h3>
|
||||
<ul>
|
||||
<li class="right" style="margin-right: 10px">
|
||||
<a href="../../genindex.html" title="General Index"
|
||||
accesskey="I">index</a></li>
|
||||
<li class="right" >
|
||||
<a href="make_common_array.html" title="make_common_array"
|
||||
accesskey="N">next</a> |</li>
|
||||
<li class="right" >
|
||||
<a href="make_array.html" title="make_array"
|
||||
accesskey="P">previous</a> |</li>
|
||||
<li><a href="../../index.html">Sprout 1.0 documentation</a> »</li>
|
||||
<li><a href="../index.html" >Libraries</a> »</li>
|
||||
<li><a href="index.html" accesskey="U">Sprout.Array</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="sphinxsidebar">
|
||||
<div class="sphinxsidebarwrapper">
|
||||
<h3><a href="../../index.html">Table Of Contents</a></h3>
|
||||
<ul>
|
||||
<li><a class="reference internal" href="#">make_array_without_narrowing</a><ul>
|
||||
<li><a class="reference internal" href="#interface">Interface</a></li>
|
||||
<li><a class="reference internal" href="#returns">Returns</a></li>
|
||||
<li><a class="reference internal" href="#remarks">Remarks</a></li>
|
||||
<li><a class="reference internal" href="#examples">Examples</a></li>
|
||||
<li><a class="reference internal" href="#complexity">Complexity</a></li>
|
||||
<li><a class="reference internal" href="#header">Header</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<h4>Previous topic</h4>
|
||||
<p class="topless"><a href="make_array.html"
|
||||
title="previous chapter">make_array</a></p>
|
||||
<h4>Next topic</h4>
|
||||
<p class="topless"><a href="make_common_array.html"
|
||||
title="next chapter">make_common_array</a></p>
|
||||
<h3>This Page</h3>
|
||||
<ul class="this-page-menu">
|
||||
<li><a href="../../_sources/libs/array/make_array_without_narrowing.txt"
|
||||
rel="nofollow">Show Source</a></li>
|
||||
</ul>
|
||||
<div id="searchbox" style="display: none">
|
||||
<h3>Quick search</h3>
|
||||
<form class="search" action="../../search.html" method="get">
|
||||
<input type="text" name="q" />
|
||||
<input type="submit" value="Go" />
|
||||
<input type="hidden" name="check_keywords" value="yes" />
|
||||
<input type="hidden" name="area" value="default" />
|
||||
</form>
|
||||
<p class="searchtip" style="font-size: 90%">
|
||||
Enter search terms or a module, class or function name.
|
||||
</p>
|
||||
</div>
|
||||
<script type="text/javascript">$('#searchbox').show(0);</script>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="document">
|
||||
<div class="documentwrapper">
|
||||
<div class="bodywrapper">
|
||||
<div class="body">
|
||||
|
||||
<div class="section" id="make-array-without-narrowing">
|
||||
<span id="sprout-array-make-array-without-narrowing"></span><h1>make_array_without_narrowing<a class="headerlink" href="#make-array-without-narrowing" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="k">template</span><span class="o"><</span><span class="k">typename</span> <span class="n">T</span><span class="p">,</span> <span class="k">typename</span><span class="p">...</span> <span class="n">Types</span><span class="o">></span>
|
||||
<span class="kr">inline</span> <span class="n">SPROUT_CONSTEXPR</span> <span class="n">sprout</span><span class="o">::</span><span class="n">array</span><span class="o"><</span><span class="k">typename</span> <span class="n">std</span><span class="o">::</span><span class="n">remove_cv</span><span class="o"><</span><span class="n">T</span><span class="o">>::</span><span class="n">type</span><span class="p">,</span> <span class="k">sizeof</span><span class="p">...(</span><span class="n">Types</span><span class="p">)</span><span class="o">></span>
|
||||
<span class="n">make_array_without_narrowing</span><span class="p">(</span><span class="n">Types</span><span class="o">&&</span><span class="p">...</span> <span class="n">args</span><span class="p">);</span>
|
||||
|
||||
<span class="k">template</span><span class="o"><</span><span class="cm">/*implementation-defined*/</span><span class="p">,</span> <span class="k">typename</span><span class="p">...</span> <span class="n">Types</span><span class="o">></span>
|
||||
<span class="kr">inline</span> <span class="n">SPROUT_CONSTEXPR</span> <span class="n">sprout</span><span class="o">::</span><span class="n">array</span><span class="o"><</span><span class="k">typename</span> <span class="n">sprout</span><span class="o">::</span><span class="n">common_decay</span><span class="o"><</span><span class="n">Types</span><span class="p">...</span><span class="o">>::</span><span class="n">type</span><span class="p">,</span> <span class="k">sizeof</span><span class="p">...(</span><span class="n">Types</span><span class="p">)</span><span class="o">></span>
|
||||
<span class="n">make_array_without_narrowing</span><span class="p">(</span><span class="n">Types</span><span class="o">&&</span><span class="p">...</span> <span class="n">args</span><span class="p">);</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="section" id="returns">
|
||||
<h2>Returns<a class="headerlink" href="#returns" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="line-block">
|
||||
<div class="line">Returns an array object initialized with the argument all elements.</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="section" id="remarks">
|
||||
<h2>Remarks<a class="headerlink" href="#remarks" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="line-block">
|
||||
<div class="line">A first version needs to be specified in the template parameters explicitly type T of the elements in the array.</div>
|
||||
<div class="line">And, the type of the elements in the array is a decayed common type of all arguments in the second version.</div>
|
||||
<div class="line"><br /></div>
|
||||
<div class="line">Narrowing conversion is prohibited in this make_array_without_narrowing function.</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="section" id="examples">
|
||||
<h2>Examples<a class="headerlink" href="#examples" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="cp">#include <sprout/array.hpp></span>
|
||||
|
||||
<span class="n">SPROUT_STATIC_CONSTEXPR</span> <span class="k">auto</span> <span class="n">x</span> <span class="o">=</span> <span class="n">sprout</span><span class="o">::</span><span class="n">make_array_without_narrowing</span><span class="o"><</span><span class="kt">int</span><span class="o">></span><span class="p">(</span><span class="mi">1</span><span class="p">,</span> <span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">,</span> <span class="mi">4</span><span class="p">,</span> <span class="mi">5</span><span class="p">,</span> <span class="mi">6</span><span class="p">,</span> <span class="mi">7</span><span class="p">,</span> <span class="mi">8</span><span class="p">,</span> <span class="mi">9</span><span class="p">,</span> <span class="mi">10</span><span class="p">);</span>
|
||||
<span class="n">static_assert</span><span class="p">(</span><span class="n">x</span><span class="p">.</span><span class="n">size</span><span class="p">()</span> <span class="o">==</span> <span class="mi">10</span><span class="p">,</span> <span class="s">"array x initialized with 10 elements."</span><span class="p">);</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="section" id="complexity">
|
||||
<h2>Complexity<a class="headerlink" href="#complexity" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="line-block">
|
||||
<div class="line">Recursive function invocations in <em>O(1)</em> (constant) depth.</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="section" id="header">
|
||||
<h2>Header<a class="headerlink" href="#header" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="line-block">
|
||||
<div class="line"><tt class="docutils literal"><span class="pre">sprout/array/make_array.hpp</span></tt></div>
|
||||
<div class="line">Convenience header: <tt class="docutils literal"><span class="pre">sprout/array.hpp</span></tt></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearer"></div>
|
||||
</div>
|
||||
<div class="related">
|
||||
<h3>Navigation</h3>
|
||||
<ul>
|
||||
<li class="right" style="margin-right: 10px">
|
||||
<a href="../../genindex.html" title="General Index"
|
||||
>index</a></li>
|
||||
<li class="right" >
|
||||
<a href="make_common_array.html" title="make_common_array"
|
||||
>next</a> |</li>
|
||||
<li class="right" >
|
||||
<a href="make_array.html" title="make_array"
|
||||
>previous</a> |</li>
|
||||
<li><a href="../../index.html">Sprout 1.0 documentation</a> »</li>
|
||||
<li><a href="../index.html" >Libraries</a> »</li>
|
||||
<li><a href="index.html" >Sprout.Array</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer">
|
||||
© Copyright 2013-2014, Bolero MURAKAMI.
|
||||
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.3.
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -39,7 +39,7 @@
|
|||
<link rel="top" title="Sprout 1.0 documentation" href="../../index.html" />
|
||||
<link rel="up" title="Sprout.Array" href="index.html" />
|
||||
<link rel="next" title="std::tuple_size" href="array/std-tuple_size.html" />
|
||||
<link rel="prev" title="make_array" href="make_array.html" />
|
||||
<link rel="prev" title="make_array_without_narrowing" href="make_array_without_narrowing.html" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="related">
|
||||
|
@ -52,7 +52,7 @@
|
|||
<a href="array/std-tuple_size.html" title="std::tuple_size"
|
||||
accesskey="N">next</a> |</li>
|
||||
<li class="right" >
|
||||
<a href="make_array.html" title="make_array"
|
||||
<a href="make_array_without_narrowing.html" title="make_array_without_narrowing"
|
||||
accesskey="P">previous</a> |</li>
|
||||
<li><a href="../../index.html">Sprout 1.0 documentation</a> »</li>
|
||||
<li><a href="../index.html" >Libraries</a> »</li>
|
||||
|
@ -75,8 +75,8 @@
|
|||
</ul>
|
||||
|
||||
<h4>Previous topic</h4>
|
||||
<p class="topless"><a href="make_array.html"
|
||||
title="previous chapter">make_array</a></p>
|
||||
<p class="topless"><a href="make_array_without_narrowing.html"
|
||||
title="previous chapter">make_array_without_narrowing</a></p>
|
||||
<h4>Next topic</h4>
|
||||
<p class="topless"><a href="array/std-tuple_size.html"
|
||||
title="next chapter">std::tuple_size</a></p>
|
||||
|
@ -107,7 +107,7 @@
|
|||
<div class="body">
|
||||
|
||||
<div class="section" id="make-common-array">
|
||||
<h1>make_common_array<a class="headerlink" href="#make-common-array" title="Permalink to this headline">¶</a></h1>
|
||||
<span id="sprout-array-make-common-array"></span><h1>make_common_array<a class="headerlink" href="#make-common-array" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="k">template</span><span class="o"><</span><span class="k">typename</span><span class="p">...</span> <span class="n">Types</span><span class="o">></span>
|
||||
|
@ -168,7 +168,7 @@
|
|||
<a href="array/std-tuple_size.html" title="std::tuple_size"
|
||||
>next</a> |</li>
|
||||
<li class="right" >
|
||||
<a href="make_array.html" title="make_array"
|
||||
<a href="make_array_without_narrowing.html" title="make_array_without_narrowing"
|
||||
>previous</a> |</li>
|
||||
<li><a href="../../index.html">Sprout 1.0 documentation</a> »</li>
|
||||
<li><a href="../index.html" >Libraries</a> »</li>
|
||||
|
|
|
@ -106,7 +106,7 @@
|
|||
<div class="body">
|
||||
|
||||
<div class="section" id="to-array">
|
||||
<h1>to_array<a class="headerlink" href="#to-array" title="Permalink to this headline">¶</a></h1>
|
||||
<span id="sprout-array-to-array"></span><h1>to_array<a class="headerlink" href="#to-array" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="interface">
|
||||
<h2>Interface<a class="headerlink" href="#interface" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="highlight-c++"><div class="highlight"><pre><span class="k">template</span><span class="o"><</span><span class="k">typename</span> <span class="n">T</span><span class="p">,</span> <span class="n">std</span><span class="o">::</span><span class="n">size_t</span> <span class="n">N</span><span class="o">></span>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue