<?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[Ist das korrekte const correctness]]></title><description><![CDATA[<p>Schaut euch bitte das mal an</p>
<pre><code class="language-cpp">const vector&lt;int&gt;&amp; Foo::Bar() const 
{
	return(runtimes);       
}
</code></pre>
<p>Ich will nur das man mit Bar() an den Inhalt des vectors runimes kommt, welcher per referenz geliefert wird.</p>
<p>Man soll gar nix anders machen dürfen, nix löschen usw., wäre das so in Ordnung?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/121652/ist-das-korrekte-const-correctness</link><generator>RSS for Node</generator><lastBuildDate>Sat, 22 Aug 2026 18:25:36 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/121652.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 26 Sep 2005 11:26:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Ist das korrekte const correctness on Mon, 26 Sep 2005 11:26:24 GMT]]></title><description><![CDATA[<p>Schaut euch bitte das mal an</p>
<pre><code class="language-cpp">const vector&lt;int&gt;&amp; Foo::Bar() const 
{
	return(runtimes);       
}
</code></pre>
<p>Ich will nur das man mit Bar() an den Inhalt des vectors runimes kommt, welcher per referenz geliefert wird.</p>
<p>Man soll gar nix anders machen dürfen, nix löschen usw., wäre das so in Ordnung?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/880341</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/880341</guid><dc:creator><![CDATA[unbekannterNr1]]></dc:creator><pubDate>Mon, 26 Sep 2005 11:26:24 GMT</pubDate></item><item><title><![CDATA[Reply to Ist das korrekte const correctness on Mon, 26 Sep 2005 11:36:04 GMT]]></title><description><![CDATA[<p>jo.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/880353</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/880353</guid><dc:creator><![CDATA[volkard]]></dc:creator><pubDate>Mon, 26 Sep 2005 11:36:04 GMT</pubDate></item><item><title><![CDATA[Reply to Ist das korrekte const correctness on Mon, 26 Sep 2005 11:37:37 GMT]]></title><description><![CDATA[<p>volkard schrieb:</p>
<blockquote>
<p>jo.</p>
</blockquote>
<p>Ich kanns gerade nicht testen, aber so darf man dann auch nicht .clear usw. aufrufen oder? Alles verboten, außer der Zugriff :)?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/880354</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/880354</guid><dc:creator><![CDATA[unbekannterNr1]]></dc:creator><pubDate>Mon, 26 Sep 2005 11:37:37 GMT</pubDate></item><item><title><![CDATA[Reply to Ist das korrekte const correctness on Mon, 26 Sep 2005 11:47:09 GMT]]></title><description><![CDATA[<p>Lesezugriff ist erlaubt. Du bekommst also z.B. mit .at() auch lauter const-Referenzen heraus. clear() geht nicht, das ist richtig.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/880364</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/880364</guid><dc:creator><![CDATA[Ringding]]></dc:creator><pubDate>Mon, 26 Sep 2005 11:47:09 GMT</pubDate></item><item><title><![CDATA[Reply to Ist das korrekte const correctness on Mon, 26 Sep 2005 12:01:28 GMT]]></title><description><![CDATA[<p>So ins blaue Gedacht würde ich doch dann lieber einen const_iterator rausgeben oder?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/880374</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/880374</guid><dc:creator><![CDATA[templäd]]></dc:creator><pubDate>Mon, 26 Sep 2005 12:01:28 GMT</pubDate></item></channel></rss>