<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	
	>
<channel>
	<title>
	Comments on: How to Transfer unique_ptrs From a Set to Another Set	</title>
	<atom:link href="https://www.fluentcpp.com/2018/11/06/how-to-transfer-unique_ptrs-from-a-set-to-another/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.fluentcpp.com/2018/11/06/how-to-transfer-unique_ptrs-from-a-set-to-another/</link>
	<description>Jonathan Boccara&#039;s blog</description>
	<lastBuildDate>Tue, 18 Dec 2018 19:04:37 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.5.3</generator>
	<item>
		<title>
		By: Piotr Nycz		</title>
		<link>https://www.fluentcpp.com/2018/11/06/how-to-transfer-unique_ptrs-from-a-set-to-another/#comment-1442</link>

		<dc:creator><![CDATA[Piotr Nycz]]></dc:creator>
		<pubDate>Tue, 06 Nov 2018 21:22:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=2986#comment-1442</guid>

					<description><![CDATA[To make such stealing (do not make it at work - full of ugly hacks - but no need to copy):

We need stealing pop_front iterator from source:
 1. is input iterator (one pass) i.e. operator ++ does nothing
  2. operator * just get front from source, const_cast it to lvalue_ref - and call release on it (safe - if nullptr is first in order) - then erase begin, and returns just stolen value

live demo: https://wandbox.org/permlink/P9OKYwkxGqMnTGT2]]></description>
			<content:encoded><![CDATA[<p>To make such stealing (do not make it at work &#8211; full of ugly hacks &#8211; but no need to copy):</p>
<p>We need stealing pop_front iterator from source:<br />
 1. is input iterator (one pass) i.e. operator ++ does nothing<br />
  2. operator * just get front from source, const_cast it to lvalue_ref &#8211; and call release on it (safe &#8211; if nullptr is first in order) &#8211; then erase begin, and returns just stolen value</p>
<p>live demo: <a href="https://wandbox.org/permlink/P9OKYwkxGqMnTGT2" rel="nofollow ugc">https://wandbox.org/permlink/P9OKYwkxGqMnTGT2</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: jft		</title>
		<link>https://www.fluentcpp.com/2018/11/06/how-to-transfer-unique_ptrs-from-a-set-to-another/#comment-1441</link>

		<dc:creator><![CDATA[jft]]></dc:creator>
		<pubDate>Tue, 06 Nov 2018 11:14:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=2986#comment-1441</guid>

					<description><![CDATA[Have you got compilable example(s) that could be shared please?]]></description>
			<content:encoded><![CDATA[<p>Have you got compilable example(s) that could be shared please?</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
