<?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[set von auto_ptr und find_if einer id]]></title><description><![CDATA[<p>Aaaaalso, ich habe eine Klasse Identifier. Diese sieht so aus:</p>
<pre><code>/*
 * an identifyable object
 */
class Identifier {
private:
	static ident_t maxID;
	ident_t ID;
public:
	typedef auto_ptr&lt;Identifier&gt; ptr;
	Identifier();
	void createIdentifier();
	ident_t getIdentifier();

	bool operator&lt;(Identifier::ptr &amp;b);
	bool operator&lt;(ident_t i);
	bool operator==(ident_t i);

};
</code></pre>
<p>dem folgt eine binary_function zum Vergleichen:</p>
<pre><code>class CompareIdentifier: binary_function&lt;Identifier::ptr , ident_t, bool&gt;
{
public:
   result_type operator( ) ( first_argument_type a, second_argument_type id)
   {
		return a-&gt;getIdentifier() == id;
   }
};
</code></pre>
<p>jetzt kommt ein set&lt;Identifier::ptr, Identifier&gt;, nennen wir es memory.<br />
Wenn ich anhand der ID etwas im set finden will, denkt ich mir, nehm ich die find_if-funktion:</p>
<pre><code>Identifier *find(ident_t id) {
		iter it;
		iter right;
		it = find_if(memory.begin(), memory.end(),
				bind2nd( CompareIdentifier, id)
				);
		return (*it).get();
	}
</code></pre>
<p>beim Kompilieren bekomme ich folgende Ausgabe</p>
<blockquote>
<p>**** Build of configuration Debug for project 01SemaNet ****</p>
<p>make all<br />
Building file: ../src/MemoryNodes.cpp<br />
Invoking: GCC C++ Compiler<br />
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF&quot;src/MemoryNodes.d&quot; -MT&quot;src/MemoryNodes.d&quot; -o&quot;src/MemoryNodes.o&quot; &quot;../src/MemoryNodes.cpp&quot;<br />
In file included from ../src/MemoryNodes.cpp:8:<br />
../src/MemoryNodes.h: In member function ‘Identifier* Memory::find(ident_t)’:<br />
../src/MemoryNodes.h:79: error: expected primary-expression before ‘,’ token<br />
/usr/include/c++/4.3/bits/stl_tree.h: In member function ‘std::pair&lt;typename std::_Rb_tree&lt;_Key, _Val, _KeyOfValue, _Compare, _Alloc&gt;::iterator, bool&gt; std::_Rb_tree&lt;_Key, _Val, _KeyOfValue, _Compare, _Alloc&gt;::_M_insert_unique(const _Val&amp;) [with _Key = std::auto_ptr&lt;Identifier&gt;, _Val = std::auto_ptr&lt;Identifier&gt;, _KeyOfValue = std::_Identity&lt;std::auto_ptr&lt;Identifier&gt; &gt;, _Compare = Identifier, _Alloc = std::allocator&lt;std::auto_ptr&lt;Identifier&gt; &gt;]’:<br />
/usr/include/c++/4.3/bits/stl_set.h:381: instantiated from ‘std::pair&lt;typename std::_Rb_tree&lt;_Key, _Key, std::_Identity&lt;_Key&gt;, _Compare, typename _Alloc::rebind&lt;_Key&gt;::other&gt;::const_iterator, bool&gt; std::set&lt;_Key, _Compare, _Alloc&gt;::insert(const _Key&amp;) [with _Key = std::auto_ptr&lt;Identifier&gt;, _Compare = Identifier, _Alloc = std::allocator&lt;std::auto_ptr&lt;Identifier&gt; &gt;]’<br />
../src/MemoryNodes.h:72: instantiated from here<br />
/usr/include/c++/4.3/bits/stl_tree.h:1141: error: no match for call to ‘(Identifier) (const std::auto_ptr&lt;Identifier&gt;&amp;, const std::auto_ptr&lt;Identifier&gt;&amp;)’<br />
/usr/include/c++/4.3/bits/stl_set.h:381: instantiated from ‘std::pair&lt;typename std::_Rb_tree&lt;_Key, _Key, std::_Identity&lt;_Key&gt;, _Compare, typename _Alloc::rebind&lt;_Key&gt;::other&gt;::const_iterator, bool&gt; std::set&lt;_Key, _Compare, _Alloc&gt;::insert(const _Key&amp;) [with _Key = std::auto_ptr&lt;Identifier&gt;, _Compare = Identifier, _Alloc = std::allocator&lt;std::auto_ptr&lt;Identifier&gt; &gt;]’<br />
../src/MemoryNodes.h:72: instantiated from here<br />
/usr/include/c++/4.3/bits/stl_tree.h:1152: error: no match for call to ‘(Identifier) (const std::auto_ptr&lt;Identifier&gt;&amp;, const std::auto_ptr&lt;Identifier&gt;&amp;)’<br />
/usr/include/c++/4.3/bits/stl_tree.h: In member function ‘typename std::_Rb_tree&lt;_Key, _Val, _KeyOfValue, _Compare, _Alloc&gt;::iterator std::_Rb_tree&lt;_Key, _Val, _KeyOfValue, _Compare, _Alloc&gt;::_M_insert_(const std::_Rb_tree_node_base*, const std::_Rb_tree_node_base*, const _Val&amp;) [with _Key = std::auto_ptr&lt;Identifier&gt;, _Val = std::auto_ptr&lt;Identifier&gt;, _KeyOfValue = std::_Identity&lt;std::auto_ptr&lt;Identifier&gt; &gt;, _Compare = Identifier, _Alloc = std::allocator&lt;std::auto_ptr&lt;Identifier&gt; &gt;]’:<br />
/usr/include/c++/4.3/bits/stl_tree.h:1148: instantiated from ‘std::pair&lt;typename std::_Rb_tree&lt;_Key, _Val, _KeyOfValue, _Compare, _Alloc&gt;::iterator, bool&gt; std::_Rb_tree&lt;_Key, _Val, _KeyOfValue, _Compare, _Alloc&gt;::_M_insert_unique(const _Val&amp;) [with _Key = std::auto_ptr&lt;Identifier&gt;, _Val = std::auto_ptr&lt;Identifier&gt;, _KeyOfValue = std::_Identity&lt;std::auto_ptr&lt;Identifier&gt; &gt;, _Compare = Identifier, _Alloc = std::allocator&lt;std::auto_ptr&lt;Identifier&gt; &gt;]’<br />
/usr/include/c++/4.3/bits/stl_set.h:381: instantiated from ‘std::pair&lt;typename std::_Rb_tree&lt;_Key, _Key, std::_Identity&lt;_Key&gt;, _Compare, typename _Alloc::rebind&lt;_Key&gt;::other&gt;::const_iterator, bool&gt; std::set&lt;_Key, _Compare, _Alloc&gt;::insert(const _Key&amp;) [with _Key = std::auto_ptr&lt;Identifier&gt;, _Compare = Identifier, _Alloc = std::allocator&lt;std::auto_ptr&lt;Identifier&gt; &gt;]’<br />
../src/MemoryNodes.h:72: instantiated from here<br />
/usr/include/c++/4.3/bits/stl_tree.h:850: error: no match for call to ‘(Identifier) (const std::auto_ptr&lt;Identifier&gt;&amp;, const std::auto_ptr&lt;Identifier&gt;&amp;)’<br />
/usr/include/c++/4.3/ext/new_allocator.h: In member function ‘void __gnu_cxx::new_allocator&lt;_Tp&gt;::construct(_Tp*, const _Tp&amp;) [with _Tp = std::auto_ptr&lt;Identifier&gt;]’:<br />
/usr/include/c++/4.3/bits/stl_tree.h:368: instantiated from ‘std::_Rb_tree_node&lt;_Val&gt;* std::_Rb_tree&lt;_Key, _Val, _KeyOfValue, _Compare, _Alloc&gt;::_M_create_node(const _Val&amp;) [with _Key = std::auto_ptr&lt;Identifier&gt;, _Val = std::auto_ptr&lt;Identifier&gt;, _KeyOfValue = std::_Identity&lt;std::auto_ptr&lt;Identifier&gt; &gt;, _Compare = Identifier, _Alloc = std::allocator&lt;std::auto_ptr&lt;Identifier&gt; &gt;]’<br />
/usr/include/c++/4.3/bits/stl_tree.h:852: instantiated from ‘typename std::_Rb_tree&lt;_Key, _Val, _KeyOfValue, _Compare, _Alloc&gt;::iterator std::_Rb_tree&lt;_Key, _Val, _KeyOfValue, _Compare, _Alloc&gt;::_M_insert_(const std::_Rb_tree_node_base*, const std::_Rb_tree_node_base*, const _Val&amp;) [with _Key = std::auto_ptr&lt;Identifier&gt;, _Val = std::auto_ptr&lt;Identifier&gt;, _KeyOfValue = std::_Identity&lt;std::auto_ptr&lt;Identifier&gt; &gt;, _Compare = Identifier, _Alloc = std::allocator&lt;std::auto_ptr&lt;Identifier&gt; &gt;]’<br />
/usr/include/c++/4.3/bits/stl_tree.h:1148: instantiated from ‘std::pair&lt;typename std::_Rb_tree&lt;_Key, _Val, _KeyOfValue, _Compare, _Alloc&gt;::iterator, bool&gt; std::_Rb_tree&lt;_Key, _Val, _KeyOfValue, _Compare, _Alloc&gt;::_M_insert_unique(const _Val&amp;) [with _Key = std::auto_ptr&lt;Identifier&gt;, _Val = std::auto_ptr&lt;Identifier&gt;, _KeyOfValue = std::_Identity&lt;std::auto_ptr&lt;Identifier&gt; &gt;, _Compare = Identifier, _Alloc = std::allocator&lt;std::auto_ptr&lt;Identifier&gt; &gt;]’<br />
/usr/include/c++/4.3/bits/stl_set.h:381: instantiated from ‘std::pair&lt;typename std::_Rb_tree&lt;_Key, _Key, std::_Identity&lt;_Key&gt;, _Compare, typename _Alloc::rebind&lt;_Key&gt;::other&gt;::const_iterator, bool&gt; std::set&lt;_Key, _Compare, _Alloc&gt;::insert(const _Key&amp;) [with _Key = std::auto_ptr&lt;Identifier&gt;, _Compare = Identifier, _Alloc = std::allocator&lt;std::auto_ptr&lt;Identifier&gt; &gt;]’<br />
../src/MemoryNodes.h:72: instantiated from here<br />
/usr/include/c++/4.3/ext/new_allocator.h:108: error: passing ‘const std::auto_ptr&lt;Identifier&gt;’ as ‘this’ argument of ‘std::auto_ptr&lt;_Tp&gt;::operator std::auto_ptr_ref&lt;_Tp1&gt;() [with _Tp1 = Identifier, _Tp = Identifier]’ discards qualifiers<br />
make: *** [src/MemoryNodes.o] Fehler 1</p>
</blockquote>
<p>so ganz versteh ich die ausgabe allerdings nicht..<br />
kann mir wer helfen?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/255139/set-von-auto_ptr-und-find_if-einer-id</link><generator>RSS for Node</generator><lastBuildDate>Sat, 12 Sep 2026 05:44:58 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/255139.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 26 Nov 2009 09:20:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to set von auto_ptr und find_if einer id on Thu, 26 Nov 2009 09:20:15 GMT]]></title><description><![CDATA[<p>Aaaaalso, ich habe eine Klasse Identifier. Diese sieht so aus:</p>
<pre><code>/*
 * an identifyable object
 */
class Identifier {
private:
	static ident_t maxID;
	ident_t ID;
public:
	typedef auto_ptr&lt;Identifier&gt; ptr;
	Identifier();
	void createIdentifier();
	ident_t getIdentifier();

	bool operator&lt;(Identifier::ptr &amp;b);
	bool operator&lt;(ident_t i);
	bool operator==(ident_t i);

};
</code></pre>
<p>dem folgt eine binary_function zum Vergleichen:</p>
<pre><code>class CompareIdentifier: binary_function&lt;Identifier::ptr , ident_t, bool&gt;
{
public:
   result_type operator( ) ( first_argument_type a, second_argument_type id)
   {
		return a-&gt;getIdentifier() == id;
   }
};
</code></pre>
<p>jetzt kommt ein set&lt;Identifier::ptr, Identifier&gt;, nennen wir es memory.<br />
Wenn ich anhand der ID etwas im set finden will, denkt ich mir, nehm ich die find_if-funktion:</p>
<pre><code>Identifier *find(ident_t id) {
		iter it;
		iter right;
		it = find_if(memory.begin(), memory.end(),
				bind2nd( CompareIdentifier, id)
				);
		return (*it).get();
	}
</code></pre>
<p>beim Kompilieren bekomme ich folgende Ausgabe</p>
<blockquote>
<p>**** Build of configuration Debug for project 01SemaNet ****</p>
<p>make all<br />
Building file: ../src/MemoryNodes.cpp<br />
Invoking: GCC C++ Compiler<br />
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF&quot;src/MemoryNodes.d&quot; -MT&quot;src/MemoryNodes.d&quot; -o&quot;src/MemoryNodes.o&quot; &quot;../src/MemoryNodes.cpp&quot;<br />
In file included from ../src/MemoryNodes.cpp:8:<br />
../src/MemoryNodes.h: In member function ‘Identifier* Memory::find(ident_t)’:<br />
../src/MemoryNodes.h:79: error: expected primary-expression before ‘,’ token<br />
/usr/include/c++/4.3/bits/stl_tree.h: In member function ‘std::pair&lt;typename std::_Rb_tree&lt;_Key, _Val, _KeyOfValue, _Compare, _Alloc&gt;::iterator, bool&gt; std::_Rb_tree&lt;_Key, _Val, _KeyOfValue, _Compare, _Alloc&gt;::_M_insert_unique(const _Val&amp;) [with _Key = std::auto_ptr&lt;Identifier&gt;, _Val = std::auto_ptr&lt;Identifier&gt;, _KeyOfValue = std::_Identity&lt;std::auto_ptr&lt;Identifier&gt; &gt;, _Compare = Identifier, _Alloc = std::allocator&lt;std::auto_ptr&lt;Identifier&gt; &gt;]’:<br />
/usr/include/c++/4.3/bits/stl_set.h:381: instantiated from ‘std::pair&lt;typename std::_Rb_tree&lt;_Key, _Key, std::_Identity&lt;_Key&gt;, _Compare, typename _Alloc::rebind&lt;_Key&gt;::other&gt;::const_iterator, bool&gt; std::set&lt;_Key, _Compare, _Alloc&gt;::insert(const _Key&amp;) [with _Key = std::auto_ptr&lt;Identifier&gt;, _Compare = Identifier, _Alloc = std::allocator&lt;std::auto_ptr&lt;Identifier&gt; &gt;]’<br />
../src/MemoryNodes.h:72: instantiated from here<br />
/usr/include/c++/4.3/bits/stl_tree.h:1141: error: no match for call to ‘(Identifier) (const std::auto_ptr&lt;Identifier&gt;&amp;, const std::auto_ptr&lt;Identifier&gt;&amp;)’<br />
/usr/include/c++/4.3/bits/stl_set.h:381: instantiated from ‘std::pair&lt;typename std::_Rb_tree&lt;_Key, _Key, std::_Identity&lt;_Key&gt;, _Compare, typename _Alloc::rebind&lt;_Key&gt;::other&gt;::const_iterator, bool&gt; std::set&lt;_Key, _Compare, _Alloc&gt;::insert(const _Key&amp;) [with _Key = std::auto_ptr&lt;Identifier&gt;, _Compare = Identifier, _Alloc = std::allocator&lt;std::auto_ptr&lt;Identifier&gt; &gt;]’<br />
../src/MemoryNodes.h:72: instantiated from here<br />
/usr/include/c++/4.3/bits/stl_tree.h:1152: error: no match for call to ‘(Identifier) (const std::auto_ptr&lt;Identifier&gt;&amp;, const std::auto_ptr&lt;Identifier&gt;&amp;)’<br />
/usr/include/c++/4.3/bits/stl_tree.h: In member function ‘typename std::_Rb_tree&lt;_Key, _Val, _KeyOfValue, _Compare, _Alloc&gt;::iterator std::_Rb_tree&lt;_Key, _Val, _KeyOfValue, _Compare, _Alloc&gt;::_M_insert_(const std::_Rb_tree_node_base*, const std::_Rb_tree_node_base*, const _Val&amp;) [with _Key = std::auto_ptr&lt;Identifier&gt;, _Val = std::auto_ptr&lt;Identifier&gt;, _KeyOfValue = std::_Identity&lt;std::auto_ptr&lt;Identifier&gt; &gt;, _Compare = Identifier, _Alloc = std::allocator&lt;std::auto_ptr&lt;Identifier&gt; &gt;]’:<br />
/usr/include/c++/4.3/bits/stl_tree.h:1148: instantiated from ‘std::pair&lt;typename std::_Rb_tree&lt;_Key, _Val, _KeyOfValue, _Compare, _Alloc&gt;::iterator, bool&gt; std::_Rb_tree&lt;_Key, _Val, _KeyOfValue, _Compare, _Alloc&gt;::_M_insert_unique(const _Val&amp;) [with _Key = std::auto_ptr&lt;Identifier&gt;, _Val = std::auto_ptr&lt;Identifier&gt;, _KeyOfValue = std::_Identity&lt;std::auto_ptr&lt;Identifier&gt; &gt;, _Compare = Identifier, _Alloc = std::allocator&lt;std::auto_ptr&lt;Identifier&gt; &gt;]’<br />
/usr/include/c++/4.3/bits/stl_set.h:381: instantiated from ‘std::pair&lt;typename std::_Rb_tree&lt;_Key, _Key, std::_Identity&lt;_Key&gt;, _Compare, typename _Alloc::rebind&lt;_Key&gt;::other&gt;::const_iterator, bool&gt; std::set&lt;_Key, _Compare, _Alloc&gt;::insert(const _Key&amp;) [with _Key = std::auto_ptr&lt;Identifier&gt;, _Compare = Identifier, _Alloc = std::allocator&lt;std::auto_ptr&lt;Identifier&gt; &gt;]’<br />
../src/MemoryNodes.h:72: instantiated from here<br />
/usr/include/c++/4.3/bits/stl_tree.h:850: error: no match for call to ‘(Identifier) (const std::auto_ptr&lt;Identifier&gt;&amp;, const std::auto_ptr&lt;Identifier&gt;&amp;)’<br />
/usr/include/c++/4.3/ext/new_allocator.h: In member function ‘void __gnu_cxx::new_allocator&lt;_Tp&gt;::construct(_Tp*, const _Tp&amp;) [with _Tp = std::auto_ptr&lt;Identifier&gt;]’:<br />
/usr/include/c++/4.3/bits/stl_tree.h:368: instantiated from ‘std::_Rb_tree_node&lt;_Val&gt;* std::_Rb_tree&lt;_Key, _Val, _KeyOfValue, _Compare, _Alloc&gt;::_M_create_node(const _Val&amp;) [with _Key = std::auto_ptr&lt;Identifier&gt;, _Val = std::auto_ptr&lt;Identifier&gt;, _KeyOfValue = std::_Identity&lt;std::auto_ptr&lt;Identifier&gt; &gt;, _Compare = Identifier, _Alloc = std::allocator&lt;std::auto_ptr&lt;Identifier&gt; &gt;]’<br />
/usr/include/c++/4.3/bits/stl_tree.h:852: instantiated from ‘typename std::_Rb_tree&lt;_Key, _Val, _KeyOfValue, _Compare, _Alloc&gt;::iterator std::_Rb_tree&lt;_Key, _Val, _KeyOfValue, _Compare, _Alloc&gt;::_M_insert_(const std::_Rb_tree_node_base*, const std::_Rb_tree_node_base*, const _Val&amp;) [with _Key = std::auto_ptr&lt;Identifier&gt;, _Val = std::auto_ptr&lt;Identifier&gt;, _KeyOfValue = std::_Identity&lt;std::auto_ptr&lt;Identifier&gt; &gt;, _Compare = Identifier, _Alloc = std::allocator&lt;std::auto_ptr&lt;Identifier&gt; &gt;]’<br />
/usr/include/c++/4.3/bits/stl_tree.h:1148: instantiated from ‘std::pair&lt;typename std::_Rb_tree&lt;_Key, _Val, _KeyOfValue, _Compare, _Alloc&gt;::iterator, bool&gt; std::_Rb_tree&lt;_Key, _Val, _KeyOfValue, _Compare, _Alloc&gt;::_M_insert_unique(const _Val&amp;) [with _Key = std::auto_ptr&lt;Identifier&gt;, _Val = std::auto_ptr&lt;Identifier&gt;, _KeyOfValue = std::_Identity&lt;std::auto_ptr&lt;Identifier&gt; &gt;, _Compare = Identifier, _Alloc = std::allocator&lt;std::auto_ptr&lt;Identifier&gt; &gt;]’<br />
/usr/include/c++/4.3/bits/stl_set.h:381: instantiated from ‘std::pair&lt;typename std::_Rb_tree&lt;_Key, _Key, std::_Identity&lt;_Key&gt;, _Compare, typename _Alloc::rebind&lt;_Key&gt;::other&gt;::const_iterator, bool&gt; std::set&lt;_Key, _Compare, _Alloc&gt;::insert(const _Key&amp;) [with _Key = std::auto_ptr&lt;Identifier&gt;, _Compare = Identifier, _Alloc = std::allocator&lt;std::auto_ptr&lt;Identifier&gt; &gt;]’<br />
../src/MemoryNodes.h:72: instantiated from here<br />
/usr/include/c++/4.3/ext/new_allocator.h:108: error: passing ‘const std::auto_ptr&lt;Identifier&gt;’ as ‘this’ argument of ‘std::auto_ptr&lt;_Tp&gt;::operator std::auto_ptr_ref&lt;_Tp1&gt;() [with _Tp1 = Identifier, _Tp = Identifier]’ discards qualifiers<br />
make: *** [src/MemoryNodes.o] Fehler 1</p>
</blockquote>
<p>so ganz versteh ich die ausgabe allerdings nicht..<br />
kann mir wer helfen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1813695</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1813695</guid><dc:creator><![CDATA[DocJunioR]]></dc:creator><pubDate>Thu, 26 Nov 2009 09:20:15 GMT</pubDate></item><item><title><![CDATA[Reply to set von auto_ptr und find_if einer id on Thu, 26 Nov 2009 09:29:42 GMT]]></title><description><![CDATA[<p>DocJunioR schrieb:</p>
<blockquote>
<p>dem folgt eine binary_function zum Vergleichen:</p>
<pre><code>class CompareIdentifier: binary_function&lt;Identifier::ptr , ident_t, bool&gt;
{
public:
   result_type operator( ) ( first_argument_type a, second_argument_type id)
   {
		return a-&gt;getIdentifier() == id;
   }
};
</code></pre>
</blockquote>
<p>Das ist schon mal kritisch, weil hier der auto_ptr per value übergeben wird.</p>
<blockquote>
<p>jetzt kommt ein set&lt;Identifier::ptr, Identifier&gt;</p>
</blockquote>
<p>auto_ptr ist nicht containerkompatibel.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1813699</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1813699</guid><dc:creator><![CDATA[camper]]></dc:creator><pubDate>Thu, 26 Nov 2009 09:29:42 GMT</pubDate></item><item><title><![CDATA[Reply to set von auto_ptr und find_if einer id on Thu, 26 Nov 2009 09:34:38 GMT]]></title><description><![CDATA[<p>das ja man doof<br />
also eher nen weak pointer`?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1813703</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1813703</guid><dc:creator><![CDATA[DocJunioR]]></dc:creator><pubDate>Thu, 26 Nov 2009 09:34:38 GMT</pubDate></item><item><title><![CDATA[Reply to set von auto_ptr und find_if einer id on Thu, 26 Nov 2009 11:25:16 GMT]]></title><description><![CDATA[<p>DocJunioR schrieb:</p>
<blockquote>
<p>das ja man doof<br />
also eher nen weak pointer`?</p>
</blockquote>
<p>Mehrere Möglichkeiten:<br />
a) shared_ptr (oder vergleichbares; boost oder tr1).<br />
b) Pointercontainer wie die von boost.<br />
c) Selbst um die Verwaltung kümmern.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1813745</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1813745</guid><dc:creator><![CDATA[asc]]></dc:creator><pubDate>Thu, 26 Nov 2009 11:25:16 GMT</pubDate></item></channel></rss>