<?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[Exceptions in STL]]></title><description><![CDATA[<p>Hallo NG,</p>
<p>ich würde gerne wissen, welche Exceptions ich von STL Container Methoden wie z.B. von</p>
<pre><code class="language-cpp">vector.at(x);
</code></pre>
<p>erwarten kann. Wer weiß eine gute Referenz im Netz, in der ich zu jeder Methode alle Exceptions aufgelistet bekomme.</p>
<p>Grüße,<br />
M.Incani</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/175131/exceptions-in-stl</link><generator>RSS for Node</generator><lastBuildDate>Sat, 19 Sep 2026 01:28:16 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/175131.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 07 Mar 2007 13:39:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Exceptions in STL on Wed, 07 Mar 2007 13:39:50 GMT]]></title><description><![CDATA[<p>Hallo NG,</p>
<p>ich würde gerne wissen, welche Exceptions ich von STL Container Methoden wie z.B. von</p>
<pre><code class="language-cpp">vector.at(x);
</code></pre>
<p>erwarten kann. Wer weiß eine gute Referenz im Netz, in der ich zu jeder Methode alle Exceptions aufgelistet bekomme.</p>
<p>Grüße,<br />
M.Incani</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1240944</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1240944</guid><dc:creator><![CDATA[BlackPepper]]></dc:creator><pubDate>Wed, 07 Mar 2007 13:39:50 GMT</pubDate></item><item><title><![CDATA[Reply to Exceptions in STL on Wed, 07 Mar 2007 14:02:28 GMT]]></title><description><![CDATA[<p>Wirft eine std::out_of_range Exception.</p>
<p>Referenz? ISO-Standard oder jedes gute C++ Standardlibrary Buch. Oder die MSDN, die ist sehr gut dafür geeignet. Oder <a href="http://www.cppreference.com" rel="nofollow">www.cppreference.com</a> sagt auch das es eine Exception wirft, leider nicht welche.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1240962</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1240962</guid><dc:creator><![CDATA[Artchi]]></dc:creator><pubDate>Wed, 07 Mar 2007 14:02:28 GMT</pubDate></item><item><title><![CDATA[Reply to Exceptions in STL on Wed, 07 Mar 2007 14:58:48 GMT]]></title><description><![CDATA[<p>Artchi schrieb:</p>
<blockquote>
<p>Wirft eine std::out_of_range Exception.</p>
<p>Referenz? ISO-Standard oder jedes gute C++ Standardlibrary Buch. Oder die MSDN, die ist sehr gut dafür geeignet. Oder <a href="http://www.cppreference.com" rel="nofollow">www.cppreference.com</a> sagt auch das es eine Exception wirft, leider nicht welche.</p>
</blockquote>
<p>Soviel hab ich auch herausgefunden. Aber sogar die Orginal STL Doku von SGI <a href="http://www.sgi.com/tech/stl/" rel="nofollow">http://www.sgi.com/tech/stl/</a> schweigt zu den Exceptions. Ich bin mir ziemlich sicher, das z.B.</p>
<pre><code class="language-cpp">container.push_back(x)
</code></pre>
<p>auch eine Exception wirft, aber welche.</p>
<p>Grüße,<br />
M. Incani</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1241015</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1241015</guid><dc:creator><![CDATA[BlackPepper]]></dc:creator><pubDate>Wed, 07 Mar 2007 14:58:48 GMT</pubDate></item><item><title><![CDATA[Reply to Exceptions in STL on Wed, 07 Mar 2007 15:20:09 GMT]]></title><description><![CDATA[<p>Im Standard ist nicht vorgeschrieben welche Exception push_back werfen darf, nur das bei einer Exception der Container unverändert bleiben muß. Es scheint also implementationsabhängig zu sein.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1241035</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1241035</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Wed, 07 Mar 2007 15:20:09 GMT</pubDate></item><item><title><![CDATA[Reply to Exceptions in STL on Wed, 07 Mar 2007 15:40:35 GMT]]></title><description><![CDATA[<p>Na, in die STL-Doku von SGI würde ich auch nicht schauen. Ist ja keine Standardlibrary. Mußt du schon in eine Std-Lib-Doku schauen! Was spricht gegen die MSDN oder Dinkumware oder GNU? Die sind alle recht ausführlich.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1241063</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1241063</guid><dc:creator><![CDATA[Artchi]]></dc:creator><pubDate>Wed, 07 Mar 2007 15:40:35 GMT</pubDate></item><item><title><![CDATA[Reply to Exceptions in STL on Wed, 07 Mar 2007 16:00:34 GMT]]></title><description><![CDATA[<p><a href="http://www.kharchi.de/cppratgeber3.htm#3.3_Standard_Exceptions" rel="nofollow">http://www.kharchi.de/cppratgeber3.htm#3.3_Standard_Exceptions</a></p>
<p>Da wo du dir nicht sicher bist, welcher Typ geworfen wird, kannst du dann halt einfach std::exception abfangen. Finde ich auch ein wenig lächerlich vom C++ Komitee, das die die Exceptions in C++ noch so stiefmütterlich behandeln.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1241085</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1241085</guid><dc:creator><![CDATA[Artchi]]></dc:creator><pubDate>Wed, 07 Mar 2007 16:00:34 GMT</pubDate></item><item><title><![CDATA[Reply to Exceptions in STL on Thu, 08 Mar 2007 07:19:04 GMT]]></title><description><![CDATA[<p>push_back() wirft von sich aus höchstens out_of_memory-Exceptions (und natürlich Exceptions, die bei den Kopier-Operationen der Elemente auftreten könnten). Aber mit einem <code>catch(std::exception&amp;)</code> solltest du eigentlich alles erwischen, was irgendwo aus der Standardbibliothek geworfen werden könnte.</p>
<p>(und wenn du clever bist, hängst du deine eigenen Ausnahmen auch in diese Hierarchie ein ;))</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1241394</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1241394</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Thu, 08 Mar 2007 07:19:04 GMT</pubDate></item></channel></rss>