<?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: Understand ranges better with the new Cartesian Product adaptor	</title>
	<atom:link href="https://www.fluentcpp.com/2017/04/14/understand-ranges-better-with-the-new-cartesian-product-adaptor/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.fluentcpp.com/2017/04/14/understand-ranges-better-with-the-new-cartesian-product-adaptor/</link>
	<description>Jonathan Boccara&#039;s blog</description>
	<lastBuildDate>Thu, 11 May 2017 14:10:00 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.5.4</generator>
	<item>
		<title>
		By: Jonathan Boccara		</title>
		<link>https://www.fluentcpp.com/2017/04/14/understand-ranges-better-with-the-new-cartesian-product-adaptor/#comment-262</link>

		<dc:creator><![CDATA[Jonathan Boccara]]></dc:creator>
		<pubDate>Thu, 11 May 2017 14:10:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=959#comment-262</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.fluentcpp.com/2017/04/14/understand-ranges-better-with-the-new-cartesian-product-adaptor/#comment-260&quot;&gt;Malcolm Parsons&lt;/a&gt;.

Can&#039;t see how right now. But that&#039;s a good point :)]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.fluentcpp.com/2017/04/14/understand-ranges-better-with-the-new-cartesian-product-adaptor/#comment-260">Malcolm Parsons</a>.</p>
<p>Can&#8217;t see how right now. But that&#8217;s a good point 🙂</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Malcolm Parsons		</title>
		<link>https://www.fluentcpp.com/2017/04/14/understand-ranges-better-with-the-new-cartesian-product-adaptor/#comment-260</link>

		<dc:creator><![CDATA[Malcolm Parsons]]></dc:creator>
		<pubDate>Wed, 10 May 2017 17:00:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=959#comment-260</guid>

					<description><![CDATA[In a proprietary product, I filter the results of a cartesian product so that each element in the output is different.

Performance is better if the filtering is done while producting:
    for (auto&#038; element1 : collection1) {
        for (auto&#038; element2 : collection2) {
            if (element1 == element2) continue;
            for (auto&#038; element3 : collection3) {
                if (element1 == element3) continue;
                if (element2 == element3) continue;
                func(element1, element2, element3);
            }
        }
    }

So I use a decomposed cartesian product that lets me insert filter steps between product steps in a pipeline.

Is this possible with ranges?]]></description>
			<content:encoded><![CDATA[<p>In a proprietary product, I filter the results of a cartesian product so that each element in the output is different.</p>
<p>Performance is better if the filtering is done while producting:<br />
    for (auto&amp; element1 : collection1) {<br />
        for (auto&amp; element2 : collection2) {<br />
            if (element1 == element2) continue;<br />
            for (auto&amp; element3 : collection3) {<br />
                if (element1 == element3) continue;<br />
                if (element2 == element3) continue;<br />
                func(element1, element2, element3);<br />
            }<br />
        }<br />
    }</p>
<p>So I use a decomposed cartesian product that lets me insert filter steps between product steps in a pipeline.</p>
<p>Is this possible with ranges?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Vladislav Kaplan		</title>
		<link>https://www.fluentcpp.com/2017/04/14/understand-ranges-better-with-the-new-cartesian-product-adaptor/#comment-212</link>

		<dc:creator><![CDATA[Vladislav Kaplan]]></dc:creator>
		<pubDate>Wed, 19 Apr 2017 07:33:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=959#comment-212</guid>

					<description><![CDATA[Thank you]]></description>
			<content:encoded><![CDATA[<p>Thank you</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
