<?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 (std::)find something efficiently with the STL	</title>
	<atom:link href="https://www.fluentcpp.com/2017/01/16/how-to-stdfind-something-efficiently-with-the-stl/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.fluentcpp.com/2017/01/16/how-to-stdfind-something-efficiently-with-the-stl/</link>
	<description>Jonathan Boccara&#039;s blog</description>
	<lastBuildDate>Fri, 16 Nov 2018 16:47: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: Egor Tsaryk		</title>
		<link>https://www.fluentcpp.com/2017/01/16/how-to-stdfind-something-efficiently-with-the-stl/#comment-1471</link>

		<dc:creator><![CDATA[Egor Tsaryk]]></dc:creator>
		<pubDate>Fri, 16 Nov 2018 16:47:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=477#comment-1471</guid>

					<description><![CDATA[Thank you, great article !]]></description>
			<content:encoded><![CDATA[<p>Thank you, great article !</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: azadkuh		</title>
		<link>https://www.fluentcpp.com/2017/01/16/how-to-stdfind-something-efficiently-with-the-stl/#comment-59</link>

		<dc:creator><![CDATA[azadkuh]]></dc:creator>
		<pubDate>Fri, 20 Jan 2017 08:46:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=477#comment-59</guid>

					<description><![CDATA[kudos!
`std::any_of()` is probably more expressive than `std::find() != end()` although it&#039;s a shortcut for `std::find_if() != end()`]]></description>
			<content:encoded><![CDATA[<p>kudos!<br />
`std::any_of()` is probably more expressive than `std::find() != end()` although it&#8217;s a shortcut for `std::find_if() != end()`</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jonathan Boccara		</title>
		<link>https://www.fluentcpp.com/2017/01/16/how-to-stdfind-something-efficiently-with-the-stl/#comment-58</link>

		<dc:creator><![CDATA[Jonathan Boccara]]></dc:creator>
		<pubDate>Thu, 19 Jan 2017 12:50:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=477#comment-58</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.fluentcpp.com/2017/01/16/how-to-stdfind-something-efficiently-with-the-stl/#comment-57&quot;&gt;EricWieser&lt;/a&gt;.

Hi Eric,

`equal_range` is indeed much better than `std::make_pair(std::lower_bound(,,,), std::upper_bound(...))`, so if you need both locations before AND after the current representations of the searched value, then it is more appropriate than lower_bound + upper_bound.

And if you need only one of them, like the location before the occurrences of the searched value, then lower_bound should be enough, right?]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.fluentcpp.com/2017/01/16/how-to-stdfind-something-efficiently-with-the-stl/#comment-57">EricWieser</a>.</p>
<p>Hi Eric,</p>
<p>`equal_range` is indeed much better than `std::make_pair(std::lower_bound(,,,), std::upper_bound(&#8230;))`, so if you need both locations before AND after the current representations of the searched value, then it is more appropriate than lower_bound + upper_bound.</p>
<p>And if you need only one of them, like the location before the occurrences of the searched value, then lower_bound should be enough, right?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: EricWieser		</title>
		<link>https://www.fluentcpp.com/2017/01/16/how-to-stdfind-something-efficiently-with-the-stl/#comment-57</link>

		<dc:creator><![CDATA[EricWieser]]></dc:creator>
		<pubDate>Thu, 19 Jan 2017 10:43:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=477#comment-57</guid>

					<description><![CDATA[In there &quot;Where should it be&quot; case, can&#039;t you just use `equal_range` again? Isn&#039;t that basically a more efficient version of `std::make_pair(std::lower_bound(,,,), std::upper_bound(...))` anyway?]]></description>
			<content:encoded><![CDATA[<p>In there &#8220;Where should it be&#8221; case, can&#8217;t you just use `equal_range` again? Isn&#8217;t that basically a more efficient version of `std::make_pair(std::lower_bound(,,,), std::upper_bound(&#8230;))` anyway?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Василий Федосов		</title>
		<link>https://www.fluentcpp.com/2017/01/16/how-to-stdfind-something-efficiently-with-the-stl/#comment-56</link>

		<dc:creator><![CDATA[Василий Федосов]]></dc:creator>
		<pubDate>Tue, 17 Jan 2017 20:06:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=477#comment-56</guid>

					<description><![CDATA[equal_range has complexity 2*O, whereas lower_bound 1*O. So use lower_bound with checking, like binary_search implementation does.]]></description>
			<content:encoded><![CDATA[<p>equal_range has complexity 2*O, whereas lower_bound 1*O. So use lower_bound with checking, like binary_search implementation does.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
