<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Channel 9 Forums - Tech Off - What&#39;s the reasoning behind the behavior of c++ &quot;std::equal&quot;?</title>
	<atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/Forums/rss"></atom:link>
	<image>
		<url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url>
		<title>Channel 9 Forums - Tech Off - What&#39;s the reasoning behind the behavior of c++ &quot;std::equal&quot;?</title>
		<link>http://channel9.msdn.com/Forums</link>
	</image>
	<description>Channel 9 keeps you up to date with the latest news and behind the scenes info from Microsoft that developers love to keep up with. From LINQ to SilverLight – Watch videos and hear about all the cool technologies coming and the people behind them.</description>
	<link>http://channel9.msdn.com/Forums</link>
	<language>en</language>
	<pubDate>Sat, 25 May 2013 00:58:35 GMT</pubDate>
	<lastBuildDate>Sat, 25 May 2013 00:58:35 GMT</lastBuildDate>
	<generator>Rev9</generator>
	<c9:totalResults>3</c9:totalResults>
	<c9:pageCount>-3</c9:pageCount>
	<c9:pageSize>-1</c9:pageSize>
	<item>
		<title>Tech Off - What&#39;s the reasoning behind the behavior of c++ &quot;std::equal&quot;?</title>
		<description><![CDATA[<p>Hi all,</p><p>I was just watching the C9 lecture from Stephan about STL&nbsp;algorithms and functors, and I can't really wrap my head around std::equal!</p><p>I mean, for me the semantics is a bit strange, since what it does is IMHO more like &quot;isPrefixOf(...)&quot; than an equality check. What was the idea behind implementing std::equal as it is? Is the functionname &quot;equal&quot; not a bit misleading for what it really does?</p><p>&nbsp;</p><p>&nbsp;</p><p>Regards,</p><p>Chris</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/Whats-the-reasoning-behind-the-behavior-of-c-stdequal/a2e8fc1c5b514f7d98c8a1210174fbdc#a2e8fc1c5b514f7d98c8a1210174fbdc</link>
		<pubDate>Sat, 08 Dec 2012 22:37:59 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/Whats-the-reasoning-behind-the-behavior-of-c-stdequal/a2e8fc1c5b514f7d98c8a1210174fbdc#a2e8fc1c5b514f7d98c8a1210174fbdc</guid>
		<dc:creator>McMaiersen</dc:creator>
		<slash:comments>3</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/McMaiersen/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - What&#39;s the reasoning behind the behavior of c++ &quot;std::equal&quot;?</title>
		<description><![CDATA[<p>@<a href="/Forums/TechOff/Whats-the-reasoning-behind-the-behavior-of-c-stdequal#ca2e8fc1c5b514f7d98c8a1210174fbdc">McMaiersen</a>: Well, it does test two ranges for equality, it's just that the length of the range to be checked&nbsp;is determined by the first iterator pair. Perhaps it is a peculiar design, but it is in line with how most STL functions that operate on two ranges only require you to specify the end of one of them.</p><p>Also note that this function crashes (or at least has undefined behavior)&nbsp;if the second range is shorter than the first one, so you have to do sanity checking of the lengths before hand anyway.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/Whats-the-reasoning-behind-the-behavior-of-c-stdequal/775b6307731743fba540a12200f08865#775b6307731743fba540a12200f08865</link>
		<pubDate>Sun, 09 Dec 2012 14:35:45 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/Whats-the-reasoning-behind-the-behavior-of-c-stdequal/775b6307731743fba540a12200f08865#775b6307731743fba540a12200f08865</guid>
		<dc:creator>Sven Groot</dc:creator>
		<slash:comments>3</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/Sven Groot/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - What&#39;s the reasoning behind the behavior of c++ &quot;std::equal&quot;?</title>
		<description><![CDATA[<p>The &quot;equal&quot; function is in every language for doing a &quot;deep&quot;-check on two objects.</p><p>It ensures, that, as the name implies, both objects are actually equal. Consider the following the string construction in class c&#43;&#43;:</p><p>char *String1 = &quot;Hello World&quot;;char *String2= &quot;Hello World&quot;;</p><p>In more simple languages like VB, you could just compare the strings by &quot;String1 = String2&quot;, in more complex languages this wouldn't work because the content will beplaced at two different memory locations, thus an error will be returned.</p><p>The &quot;equal&quot; function now does check the real content of the string pointers.</p><p>Regards,</p><p>Flo</p><p>Founder / http://www.lelala.de | <a title="http://www.lelala.de" href="http://www.lelala.de">Lelala</a></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/Whats-the-reasoning-behind-the-behavior-of-c-stdequal/39d02e55ba4c4cc8bf2ea1ac009b7f68#39d02e55ba4c4cc8bf2ea1ac009b7f68</link>
		<pubDate>Fri, 26 Apr 2013 09:26:08 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/Whats-the-reasoning-behind-the-behavior-of-c-stdequal/39d02e55ba4c4cc8bf2ea1ac009b7f68#39d02e55ba4c4cc8bf2ea1ac009b7f68</guid>
		<dc:creator>Lelala</dc:creator>
		<slash:comments>3</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/Lelala/Discussions/RSS</wfw:commentRss>
	</item>
</channel>
</rss>