<?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[Range constructor bei containern mit leerem Range ub?]]></title><description><![CDATA[<p>Nehmen wir an ich konstruiere einen Vector mit zwei pointern in der art:</p>
<pre><code>std::vector&lt;int&gt; intvec(startintp, endintp);
</code></pre>
<p>Muss ich dann sicherstellen, dass die Ponter nicht auf das selbe Element zeigen (bei leerem range), oder ist garantiert, dass man in diesem Fall einfach einen leeren vector bekommt?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/324275/range-constructor-bei-containern-mit-leerem-range-ub</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Jul 2026 14:54:00 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/324275.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 10 Mar 2014 13:57:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Range constructor bei containern mit leerem Range ub? on Mon, 10 Mar 2014 13:57:49 GMT]]></title><description><![CDATA[<p>Nehmen wir an ich konstruiere einen Vector mit zwei pointern in der art:</p>
<pre><code>std::vector&lt;int&gt; intvec(startintp, endintp);
</code></pre>
<p>Muss ich dann sicherstellen, dass die Ponter nicht auf das selbe Element zeigen (bei leerem range), oder ist garantiert, dass man in diesem Fall einfach einen leeren vector bekommt?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2388041</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2388041</guid><dc:creator><![CDATA[TNA]]></dc:creator><pubDate>Mon, 10 Mar 2014 13:57:49 GMT</pubDate></item><item><title><![CDATA[Reply to Range constructor bei containern mit leerem Range ub? on Mon, 10 Mar 2014 14:25:48 GMT]]></title><description><![CDATA[<p>Das ist garantiert.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2388048</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2388048</guid><dc:creator><![CDATA[TyRoXx]]></dc:creator><pubDate>Mon, 10 Mar 2014 14:25:48 GMT</pubDate></item><item><title><![CDATA[Reply to Range constructor bei containern mit leerem Range ub? on Mon, 10 Mar 2014 14:41:44 GMT]]></title><description><![CDATA[<p>Beim Iteratorenpaar-Konstruktoren gilt (wie) immer, dass beide Iteratoren ein rechtsoffenes Intervall bilden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2388053</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2388053</guid><dc:creator><![CDATA[Columbo]]></dc:creator><pubDate>Mon, 10 Mar 2014 14:41:44 GMT</pubDate></item><item><title><![CDATA[Reply to Range constructor bei containern mit leerem Range ub? on Mon, 10 Mar 2014 17:17:07 GMT]]></title><description><![CDATA[<p>Arcoth schrieb:</p>
<blockquote>
<p>Beim Iteratorenpaar-Konstruktoren gilt (wie) immer, dass beide Iteratoren ein rechtsoffenes Intervall bilden.</p>
</blockquote>
<p>Das ist zu ungenau.</p>
<p>In der Mathematik ist [a;a)=[b;b)=[a;a-1)=Ø, aber in C++ darf man nicht &amp;x und &amp;x-1 übergeben.</p>
<p>Das heisst: Iteratorenpaare sind rechtsoffene Intervalle, für die gelten muss right≥left.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2388089</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2388089</guid><dc:creator><![CDATA[sinnoffen]]></dc:creator><pubDate>Mon, 10 Mar 2014 17:17:07 GMT</pubDate></item></channel></rss>