<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[std::map, insert erfolgreich?]]></title><description><![CDATA[<pre><code class="language-cpp">int size = m_map.size();
m_map.insert(MyPair(key, value));
if (size == m_map.size()) {
   return false;
}
   return true;
</code></pre>
<p>Wie wirds richtig gemacht?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/200506/std-map-insert-erfolgreich</link><generator>RSS for Node</generator><lastBuildDate>Mon, 05 Oct 2026 01:19:12 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/200506.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 15 Dec 2007 22:32:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to std::map, insert erfolgreich? on Sat, 15 Dec 2007 22:32:36 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">int size = m_map.size();
m_map.insert(MyPair(key, value));
if (size == m_map.size()) {
   return false;
}
   return true;
</code></pre>
<p>Wie wirds richtig gemacht?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1421172</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1421172</guid><dc:creator><![CDATA[Hilfeeeeeeee]]></dc:creator><pubDate>Sat, 15 Dec 2007 22:32:36 GMT</pubDate></item><item><title><![CDATA[Reply to std::map, insert erfolgreich? on Sat, 15 Dec 2007 22:48:20 GMT]]></title><description><![CDATA[<p>.. steht in jedem Tutorial und nicht zuletzt hier: <a href="http://www.cppreference.com/cppmap/insert.html" rel="nofollow">http://www.cppreference.com/cppmap/insert.html</a></p>
<p>Gruß,</p>
<p>Simon2.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1421175</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1421175</guid><dc:creator><![CDATA[Simon2]]></dc:creator><pubDate>Sat, 15 Dec 2007 22:48:20 GMT</pubDate></item><item><title><![CDATA[Reply to std::map, insert erfolgreich? on Sat, 15 Dec 2007 22:54:16 GMT]]></title><description><![CDATA[<p>Simon2 schrieb:</p>
<blockquote>
<p>.. steht in jedem Tutorial und nicht zuletzt hier:<br />
Gruß,</p>
<p>Simon2.</p>
</blockquote>
<p>Es gehtdarum zu überprüfen, ob der Wert erfolgreich eingefügt werden konnte.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1421178</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1421178</guid><dc:creator><![CDATA[Hilfeeeeeeee]]></dc:creator><pubDate>Sat, 15 Dec 2007 22:54:16 GMT</pubDate></item><item><title><![CDATA[Reply to std::map, insert erfolgreich? on Sat, 15 Dec 2007 23:34:30 GMT]]></title><description><![CDATA[<blockquote>
<p>pair&lt;iterator,bool&gt; insert( const TYPE&amp; pair );<br />
[...]<br />
inserts pair&lt;key,val&gt;, but only if no element with key key already exists. The return value is an iterator to the element inserted (or an existing pair with key key), and a boolean which is true if an insertion took place.</p>
</blockquote>
<p>--&gt;</p>
<pre><code class="language-cpp">if(m_map.insert(MyPair(key, value)).second)
    // paar erfolgreich eingefügt
else
    // schlüssel bereits vorhanden
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1421189</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1421189</guid><dc:creator><![CDATA[OhneName]]></dc:creator><pubDate>Sat, 15 Dec 2007 23:34:30 GMT</pubDate></item><item><title><![CDATA[Reply to std::map, insert erfolgreich? on Sun, 16 Dec 2007 10:33:35 GMT]]></title><description><![CDATA[<p><a href="http://www.cplusplus.com/reference/stl/map/insert.html" rel="nofollow">http://www.cplusplus.com/reference/stl/map/insert.html</a> ... steht doch schön mit Beispiel erklärt ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1421276</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1421276</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Sun, 16 Dec 2007 10:33:35 GMT</pubDate></item><item><title><![CDATA[Reply to std::map, insert erfolgreich? on Sun, 16 Dec 2007 21:06:49 GMT]]></title><description><![CDATA[<p>Hilfeeeeeeee schrieb:</p>
<blockquote>
<p>Simon2 schrieb:</p>
<blockquote>
<p>.. steht in jedem Tutorial und nicht zuletzt hier:<br />
Gruß,</p>
<p>Simon2.</p>
</blockquote>
<p>Es gehtdarum zu überprüfen, ob der Wert erfolgreich eingefügt werden konnte.</p>
</blockquote>
<p>Eben - deswegen habe ich ja auf diese Seite verwiesen !</p>
<p>Lesen ist der erste Schritt zur Erkenntnis....</p>
<p>Gruß,</p>
<p>Simon2.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1421649</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1421649</guid><dc:creator><![CDATA[Simon2]]></dc:creator><pubDate>Sun, 16 Dec 2007 21:06:49 GMT</pubDate></item></channel></rss>