Warning: Undefined variable $resultados in /home/enciclo/public_html/dictious.com/search.php on line 17
std%3A%3Aspan - Dictious

4 Talált eredmények " std::span"

std::span

<span class="searchmatch">std</span>::<span class="searchmatch">span</span> (tsz. <span class="searchmatch">std</span>::spans) (informatika) A **<span class="searchmatch">std</span>::<span class="searchmatch">span</span>** a C++20 újdonsága, amely egy nem birtokló nézet egy tömbre vagy tömbszerű adatszerkezetre. Lehetővé...


array slicing

std::<span class="searchmatch">span</span> egy nem birtokló nézet egy tömb egy szeletére. #include &lt;<span class="searchmatch">span</span>&gt; #include &lt;iostream&gt; void kiir(<span class="searchmatch">std</span>::<span class="searchmatch">span</span>&lt;int&gt; resz) { for (int x : resz) <span class="searchmatch">std</span>::cout...


C++20

inicializálható #include &lt;<span class="searchmatch">span</span>&gt; #include &lt;vector&gt; void process(<span class="searchmatch">std</span>::<span class="searchmatch">span</span>&lt;int&gt; data) { for (int&amp; x : data) x *= 2; } int main() { <span class="searchmatch">std</span>::vector&lt;int&gt; v{1, 2, 3...


C-style array

vagy performance-kritikus kódhoz. Modern C++-ban inkább <span class="searchmatch">std</span>::array, <span class="searchmatch">std</span>::vector vagy <span class="searchmatch">std</span>::<span class="searchmatch">span</span> használata ajánlott. Használatakor mindig tartsd észben:...