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

10 Talált eredmények " std::move"

std::move

<span class="searchmatch">std</span>::<span class="searchmatch">move</span> (tsz. <span class="searchmatch">std</span>::moves) (informatika) A <span class="searchmatch">std</span>::<span class="searchmatch">move</span> a C++11-ben bevezetett standard könyvtári függvény, amely nem mozgat semmit — csak egy rvalue-re...


move semantics

<span class="searchmatch">move</span> semantics (tsz. <span class="searchmatch">move</span> semanticses) (informatika) A C++ <span class="searchmatch">move</span> szemantika a C++11-es szabvány egyik legfontosabb újítása, amely lehetővé teszi az erőforrások...


move constructor

<span class="searchmatch">move</span> constructor (tsz. <span class="searchmatch">move</span> constructors) (informatika) A <span class="searchmatch">move</span> konstruktor egy speciális konstruktor C++-ban, amely egy rövid élettartamú objektum erőforrásait...


move assignment operator

<span class="searchmatch">move</span> assignment operator (tsz. <span class="searchmatch">move</span> assignment operators) (informatika) A <span class="searchmatch">move</span> assignment operator C++-ban egy speciális operátor, amely lehetővé teszi...


decorator pattern

<span class="searchmatch">std</span>::unique_ptr&lt;Coffee&gt; c = <span class="searchmatch">std</span>::make_unique&lt;BasicCoffee&gt;(); c = <span class="searchmatch">std</span>::make_unique&lt;Milk&gt;(<span class="searchmatch">std</span>::<span class="searchmatch">move</span>(c)); c = <span class="searchmatch">std</span>::make_unique&lt;Sugar&gt;(<span class="searchmatch">std</span>::<span class="searchmatch">move</span>(c)); <span class="searchmatch">std</span>::cout...


rvalue reference

MyClass obj2 = <span class="searchmatch">std</span>::<span class="searchmatch">move</span>(obj1); // obj1 adatainak áthelyezése obj2-be // <span class="searchmatch">Move</span> assignment operator hívása MyClass obj3; obj3 = <span class="searchmatch">std</span>::<span class="searchmatch">move</span>(obj2); // obj2...


C++11

&lt;iostream&gt; #include &lt;vector&gt; int main() { <span class="searchmatch">std</span>::vector&lt;int&gt; v1 = {1, 2, 3}; <span class="searchmatch">std</span>::vector&lt;int&gt; v2 = <span class="searchmatch">std</span>::<span class="searchmatch">move</span>(v1); // v1 tartalma átköltözik v2-be } A C++11...


std::vector

= v1; // Másolat <span class="searchmatch">std</span>::vector&lt;int&gt; v3 = <span class="searchmatch">std</span>::<span class="searchmatch">move</span>(v1); // v1 tartalmát átköltözteti v3-ba <span class="searchmatch">std</span>::vector&lt;int&gt; v = {5, 2, 8, 1, 3}; <span class="searchmatch">std</span>::sort(v.begin(), v...


smart pointer

lenne) // <span class="searchmatch">std</span>::unique_ptr&lt;int&gt; ptr2 = ptr; // Átadhatjuk másik `unique_ptr`-nek `<span class="searchmatch">std</span>::<span class="searchmatch">move</span>()`-val <span class="searchmatch">std</span>::unique_ptr&lt;int&gt; ptr2 = <span class="searchmatch">std</span>::<span class="searchmatch">move</span>(ptr); <span class="searchmatch">std</span>::cout &lt;&lt;...


auto&

&quot;Hello&quot;; auto&amp;&amp; <span class="searchmatch">moved</span>Str = <span class="searchmatch">std</span>::<span class="searchmatch">move</span>(str); // <span class="searchmatch">moved</span>Str egy jobboldali referencia <span class="searchmatch">std</span>::cout &lt;&lt; &quot;<span class="searchmatch">moved</span>Str: &quot; &lt;&lt; <span class="searchmatch">moved</span>Str &lt;&lt; <span class="searchmatch">std</span>::endl; <span class="searchmatch">std</span>::cout &lt;&lt; &quot;str (üres...