<?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: is_transparent: How to search a C++ set with another type than its key	</title>
	<atom:link href="https://www.fluentcpp.com/2017/06/09/search-set-another-type-key/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.fluentcpp.com/2017/06/09/search-set-another-type-key/</link>
	<description>Jonathan Boccara&#039;s blog</description>
	<lastBuildDate>Sun, 07 Oct 2018 15:22: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/06/09/search-set-another-type-key/#comment-1368</link>

		<dc:creator><![CDATA[Jonathan Boccara]]></dc:creator>
		<pubDate>Sun, 07 Oct 2018 15:22:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=994#comment-1368</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.fluentcpp.com/2017/06/09/search-set-another-type-key/#comment-1336&quot;&gt;Kupiakos&lt;/a&gt;.

Do you mean using a different hash function for searching than the one that is in the container? Which hash function would you use for the insertions?]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.fluentcpp.com/2017/06/09/search-set-another-type-key/#comment-1336">Kupiakos</a>.</p>
<p>Do you mean using a different hash function for searching than the one that is in the container? Which hash function would you use for the insertions?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Kupiakos		</title>
		<link>https://www.fluentcpp.com/2017/06/09/search-set-another-type-key/#comment-1336</link>

		<dc:creator><![CDATA[Kupiakos]]></dc:creator>
		<pubDate>Fri, 28 Sep 2018 00:15:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=994#comment-1336</guid>

					<description><![CDATA[I wonder if there&#039;d be a good way to add something like this to std::unordered_map - searching by a hash or with a different hash function maybe?

Nitpick: using he/him to refer to &quot;default&quot; programmers is a pet peeve of mine - society&#039;s come far enough to use gender neutral English]]></description>
			<content:encoded><![CDATA[<p>I wonder if there&#8217;d be a good way to add something like this to std::unordered_map &#8211; searching by a hash or with a different hash function maybe?</p>
<p>Nitpick: using he/him to refer to &#8220;default&#8221; programmers is a pet peeve of mine &#8211; society&#8217;s come far enough to use gender neutral English</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Paul Cook		</title>
		<link>https://www.fluentcpp.com/2017/06/09/search-set-another-type-key/#comment-331</link>

		<dc:creator><![CDATA[Paul Cook]]></dc:creator>
		<pubDate>Sat, 10 Jun 2017 09:29:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=994#comment-331</guid>

					<description><![CDATA[Very interesting and if timely use for me, thanks. I shall dig further.]]></description>
			<content:encoded><![CDATA[<p>Very interesting and if timely use for me, thanks. I shall dig further.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Daniel Houck		</title>
		<link>https://www.fluentcpp.com/2017/06/09/search-set-another-type-key/#comment-330</link>

		<dc:creator><![CDATA[Daniel Houck]]></dc:creator>
		<pubDate>Fri, 09 Jun 2017 22:14:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=994#comment-330</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.fluentcpp.com/2017/06/09/search-set-another-type-key/#comment-327&quot;&gt;Hanna Khalil&lt;/a&gt;.

The solution to the problem is that C++14 introduced the

&lt;pre&gt;&lt;code&gt;template&#060; class K &#062; iterator find( const K&#038; x );&lt;/code&gt;&lt;/pre&gt; overload (and a similar const one), but because of template metaprogramming they only work if &lt;pre&gt;&lt;code&gt;typename Compare::is_transparent&lt;/code&gt;&lt;/pre&gt; is valid.

I believe the reason they made it require that tag is to avoid breaking old code where the comparison would do a different conversion than changing the K to a Key, but I don’t know the details.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.fluentcpp.com/2017/06/09/search-set-another-type-key/#comment-327">Hanna Khalil</a>.</p>
<p>The solution to the problem is that C++14 introduced the</p>
<pre><code>template&lt; class K &gt; iterator find( const K&amp; x );</code></pre>
<p> overload (and a similar const one), but because of template metaprogramming they only work if </p>
<pre><code>typename Compare::is_transparent</code></pre>
<p> is valid.</p>
<p>I believe the reason they made it require that tag is to avoid breaking old code where the comparison would do a different conversion than changing the K to a Key, but I don’t know the details.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Daniel Houck		</title>
		<link>https://www.fluentcpp.com/2017/06/09/search-set-another-type-key/#comment-328</link>

		<dc:creator><![CDATA[Daniel Houck]]></dc:creator>
		<pubDate>Fri, 09 Jun 2017 15:49:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=994#comment-328</guid>

					<description><![CDATA[This is interesting and useful; I’d seen references to `is_transparent` before but always worded in a hard-to-understand way I hadn’t yet tried to parse out.

However, the most interesting thing I got out of this article is that you can inherit from lambdas to make overloads of lambdas, which is *really cool* and I hope that C++20 has a `std::function_overload` type in ``, or equivalent.]]></description>
			<content:encoded><![CDATA[<p>This is interesting and useful; I’d seen references to `is_transparent` before but always worded in a hard-to-understand way I hadn’t yet tried to parse out.</p>
<p>However, the most interesting thing I got out of this article is that you can inherit from lambdas to make overloads of lambdas, which is *really cool* and I hope that C++20 has a `std::function_overload` type in &#8220;, or equivalent.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Hanna Khalil		</title>
		<link>https://www.fluentcpp.com/2017/06/09/search-set-another-type-key/#comment-327</link>

		<dc:creator><![CDATA[Hanna Khalil]]></dc:creator>
		<pubDate>Fri, 09 Jun 2017 13:16:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=994#comment-327</guid>

					<description><![CDATA[Nice presentation of the problem but it&#039;s not explained how the proposed is a solution to the problem]]></description>
			<content:encoded><![CDATA[<p>Nice presentation of the problem but it&#8217;s not explained how the proposed is a solution to the problem</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Dan Ibanez		</title>
		<link>https://www.fluentcpp.com/2017/06/09/search-set-another-type-key/#comment-326</link>

		<dc:creator><![CDATA[Dan Ibanez]]></dc:creator>
		<pubDate>Fri, 09 Jun 2017 13:06:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=994#comment-326</guid>

					<description><![CDATA[This feature was sorely needed in my opinion. I&#039;m a bit confused as to why they decided to go with an ignored typedef is_transparent, but it seems straightforward enough to use anyway. Thank you for writing about this, I hadn&#039;t heard of it before.]]></description>
			<content:encoded><![CDATA[<p>This feature was sorely needed in my opinion. I&#8217;m a bit confused as to why they decided to go with an ignored typedef is_transparent, but it seems straightforward enough to use anyway. Thank you for writing about this, I hadn&#8217;t heard of it before.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
