<?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"
	>
<channel>
	<title>Comments on: Use STL lower_bound even though it&#8217;s slower</title>
	<atom:link href="http://www.sambal.org/2008-07/use-stl-lower_bound-even-though-its-slower/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sambal.org/2008-07/use-stl-lower_bound-even-though-its-slower/</link>
	<description>Self-employment + software = fun, bitter</description>
	<pubDate>Fri, 09 Jan 2009 21:33:01 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Sam</title>
		<link>http://www.sambal.org/2008-07/use-stl-lower_bound-even-though-its-slower/#comment-79</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Thu, 02 Oct 2008 11:14:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.sambal.org/?p=703#comment-79</guid>
		<description>A sensible question.  A set might be the most appropriate data structure for some usage patterns, but it's not a drop-in equivalent.  

I expand into its own post here: http://www.sambal.org/2008-10/stl-lower_bound-set-vs-list/</description>
		<content:encoded><![CDATA[<p>A sensible question.  A set might be the most appropriate data structure for some usage patterns, but it&#8217;s not a drop-in equivalent.  </p>
<p>I expand into its own post here: <a href="http://www.sambal.org/2008-10/stl-lower_bound-set-vs-list/" rel="nofollow">http://www.sambal.org/2008-10/stl-lower_bound-set-vs-list/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://www.sambal.org/2008-07/use-stl-lower_bound-even-though-its-slower/#comment-77</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Tue, 30 Sep 2008 13:43:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.sambal.org/?p=703#comment-77</guid>
		<description>If you are going to use a list, and you want it sorted, and you want to look up things in it, then use std::set

Thats what its designed to do... it can do a lower_bound quickly
http://www.cplusplus.com/reference/stl/set/lower_bound.html

and inserts/deletes are fast.

if you have the option to use a set, why would you use a list ?</description>
		<content:encoded><![CDATA[<p>If you are going to use a list, and you want it sorted, and you want to look up things in it, then use std::set</p>
<p>Thats what its designed to do&#8230; it can do a lower_bound quickly<br />
<a href="http://www.cplusplus.com/reference/stl/set/lower_bound.html" rel="nofollow">http://www.cplusplus.com/reference/stl/set/lower_bound.html</a></p>
<p>and inserts/deletes are fast.</p>
<p>if you have the option to use a set, why would you use a list ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
