<?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[Frage zu C++ Exceptions]]></title><description><![CDATA[<p>Servus,</p>
<p>wann sollte man eine Ausnahme werfen? Wann lieber eine bool zurückgeben?<br />
Macht es Sinn, bei einen Zugriff auf einen nicht existierenden Schlüssel in einer Hash-Map eine Ausnahme zu schmeißen?</p>
<p>Wo liegt der Unterschied?</p>
<p>Gruß,<br />
Martin</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/269668/frage-zu-c-exceptions</link><generator>RSS for Node</generator><lastBuildDate>Mon, 31 Aug 2026 01:22:01 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/269668.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 29 Jun 2010 10:29:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Frage zu C++ Exceptions on Tue, 29 Jun 2010 10:29:46 GMT]]></title><description><![CDATA[<p>Servus,</p>
<p>wann sollte man eine Ausnahme werfen? Wann lieber eine bool zurückgeben?<br />
Macht es Sinn, bei einen Zugriff auf einen nicht existierenden Schlüssel in einer Hash-Map eine Ausnahme zu schmeißen?</p>
<p>Wo liegt der Unterschied?</p>
<p>Gruß,<br />
Martin</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1918810</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1918810</guid><dc:creator><![CDATA[sh4re]]></dc:creator><pubDate>Tue, 29 Jun 2010 10:29:46 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu C++ Exceptions on Tue, 29 Jun 2010 10:37:18 GMT]]></title><description><![CDATA[<p><a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-219864.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-219864.html</a><br />
<a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-219865.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-219865.html</a></p>
<p>Gibt hier einen Artikel zu Exceptions. Vielleicht hilft Dir das ja.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1918814</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1918814</guid><dc:creator><![CDATA[[[global:former_user]]]]></dc:creator><pubDate>Tue, 29 Jun 2010 10:37:18 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu C++ Exceptions on Tue, 29 Jun 2010 11:00:34 GMT]]></title><description><![CDATA[<p>sh4re schrieb:</p>
<blockquote>
<p>Macht es Sinn, bei einen Zugriff auf einen nicht existierenden Schlüssel in einer Hash-Map eine Ausnahme zu schmeißen?</p>
</blockquote>
<p>Kommt drauf an. Eventuell ist es gewünscht, wie bei <code>std::map</code> beim Ausdruck</p>
<pre><code class="language-cpp">map[key] = value;
</code></pre>
<p>einen neuen Schlüssel zu erzeugen, falls dieser noch nicht vorhanden ist. Oder wie bei <code>boost::ptr_map</code> , wo der Aufruf</p>
<pre><code class="language-cpp">map.at(key) = value;
</code></pre>
<p>bei Nichtvorhandensein eine Exception wirft.</p>
<p>Oder auch nur Assert.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1918833</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1918833</guid><dc:creator><![CDATA[Nexus]]></dc:creator><pubDate>Tue, 29 Jun 2010 11:00:34 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu C++ Exceptions on Tue, 29 Jun 2010 14:12:05 GMT]]></title><description><![CDATA[<p>Die Artikel sind echt gut und interessant=).</p>
<p>Ich sag mal danke <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1918964</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1918964</guid><dc:creator><![CDATA[fr33g]]></dc:creator><pubDate>Tue, 29 Jun 2010 14:12:05 GMT</pubDate></item></channel></rss>