<?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[Zwei mal const?]]></title><description><![CDATA[<p>Moins,</p>
<p>bin gerade über folgendes Konstrukt gestolpert:</p>
<pre><code class="language-cpp">void processingInstruction
    (
        const   XMLCh* const    target
        , const XMLCh* const    data
    );
</code></pre>
<p>Ich frage mich, warum hier zwei mal &quot;const&quot; steht.<br />
Hat jemand ne Idee?</p>
<p>Gruß,<br />
Peter</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/228895/zwei-mal-const</link><generator>RSS for Node</generator><lastBuildDate>Mon, 28 Sep 2026 09:02:53 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/228895.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 04 Dec 2008 09:18:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Zwei mal const? on Thu, 04 Dec 2008 09:18:34 GMT]]></title><description><![CDATA[<p>Moins,</p>
<p>bin gerade über folgendes Konstrukt gestolpert:</p>
<pre><code class="language-cpp">void processingInstruction
    (
        const   XMLCh* const    target
        , const XMLCh* const    data
    );
</code></pre>
<p>Ich frage mich, warum hier zwei mal &quot;const&quot; steht.<br />
Hat jemand ne Idee?</p>
<p>Gruß,<br />
Peter</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1625289</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1625289</guid><dc:creator><![CDATA[P.Lustig]]></dc:creator><pubDate>Thu, 04 Dec 2008 09:18:34 GMT</pubDate></item><item><title><![CDATA[Reply to Zwei mal const? on Thu, 04 Dec 2008 09:25:30 GMT]]></title><description><![CDATA[<p>Das ist ein konstanter Zeiger auf ein konstantes Objekt vom Typ XMLCh.Dh sowohl der Zeiger als auch das Objekt auf das der Zeiger zeigt sind unveränderlich.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1625291</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1625291</guid><dc:creator><![CDATA[otze]]></dc:creator><pubDate>Thu, 04 Dec 2008 09:25:30 GMT</pubDate></item><item><title><![CDATA[Reply to Zwei mal const? on Thu, 04 Dec 2008 09:26:54 GMT]]></title><description><![CDATA[<p>Mal eine schnelle Antwort von mir (haben hier schon Andere schöner beantwortet, finde ich aber gerade nicht):</p>
<pre><code class="language-cpp">MyTyp t;       // (0) t kann verändert werden
MyTyp const t; // (1) t kann nicht verändert werden
const MyTyp t; // (1*) = (1)
MyTyp*  t;     // (2) t zeigt auf ein MyTyp-Objekt; man kann sowohl das Objekt ändern als auch wechseln
MyTyp const * t; // (3) t zeigt auf ein MyTyp-Objekt; man kann das Objekt wechseln, aber das Objekt, auf das t zeigt, nicht ändern
const MyTyp * t; // (3* ) = (3)
MyTyp * const  t; // (4) t zeigt auf ein MyTyp-Objekt; man kann das Objekt NICHT wechseln, aber das Objekt, auf das t zeigt, ändern
MyTyp const * const  t; // (5) = (3) &amp; (4): nicht wechseln, nicht ändern
const MyTyp * const  t; // (5*) = (5)
</code></pre>
<p>Gruß,</p>
<p>Simon2.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1625292</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1625292</guid><dc:creator><![CDATA[Simon2]]></dc:creator><pubDate>Thu, 04 Dec 2008 09:26:54 GMT</pubDate></item><item><title><![CDATA[Reply to Zwei mal const? on Thu, 04 Dec 2008 09:58:56 GMT]]></title><description><![CDATA[<p>Simon2 schrieb:</p>
<blockquote>
<p>Mal eine schnelle Antwort von mir (haben hier schon Andere schöner beantwortet, finde ich aber gerade nicht):</p>
</blockquote>
<p>Vor allem haben es andere teilweise auch mehrfach gepostet, weil sie ihren alten Post nicht auf die schnelle gefunden haben <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>
<p>Ergänzung um Referenzen:</p>
<pre><code class="language-cpp">MyTyp const &amp; t; // (6) t kann nicht verändert werden
const MyTyp &amp; t; // (6*) = (6)
</code></pre>
<p>cu André</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1625313</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1625313</guid><dc:creator><![CDATA[asc]]></dc:creator><pubDate>Thu, 04 Dec 2008 09:58:56 GMT</pubDate></item><item><title><![CDATA[Reply to Zwei mal const? on Thu, 04 Dec 2008 10:01:59 GMT]]></title><description><![CDATA[<p>merci beaucoup euch allen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1625318</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1625318</guid><dc:creator><![CDATA[P.Lustig]]></dc:creator><pubDate>Thu, 04 Dec 2008 10:01:59 GMT</pubDate></item></channel></rss>