<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>cplusplus.co.il &#187; snippets</title>
	<atom:link href="http://cplusplus.co.il/category/cpp/snippets/feed/" rel="self" type="application/rss+xml" />
	<link>http://cplusplus.co.il</link>
	<description>Discussing modern C++ and related topics.</description>
	<lastBuildDate>Tue, 31 Jan 2012 18:28:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='cplusplus.co.il' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>cplusplus.co.il &#187; snippets</title>
		<link>http://cplusplus.co.il</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://cplusplus.co.il/osd.xml" title="cplusplus.co.il" />
	<atom:link rel='hub' href='http://cplusplus.co.il/?pushpress=hub'/>
		<item>
		<title>ScopeLogger</title>
		<link>http://cplusplus.co.il/2009/11/18/scopelogger/</link>
		<comments>http://cplusplus.co.il/2009/11/18/scopelogger/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 20:13:14 +0000</pubDate>
		<dc:creator>rmn</dc:creator>
				<category><![CDATA[snippets]]></category>

		<guid isPermaLink="false">http://cplusplus.co.il/?p=609</guid>
		<description><![CDATA[The RAII design pattern can be utilized to create simple and intuitive logging facilities, like the one we will present now. Through the useful macro LOG_FUNC, the proposed ScopeLogger will easily create function call graphs at run time, to allow easy debugging and tracking of program execution. Here&#8217;s the implementation: Note that, as commented above, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cplusplus.co.il&amp;blog=8968104&amp;post=609&amp;subd=cpptalk&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://cplusplus.co.il/2009/11/18/scopelogger/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4ceb7c3e96e1e6c9fbef377af219fc0a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rmn</media:title>
		</media:content>
	</item>
		<item>
		<title>One-line rsort of an integer array</title>
		<link>http://cplusplus.co.il/2009/10/03/one-line-rsort-of-an-integer-array/</link>
		<comments>http://cplusplus.co.il/2009/10/03/one-line-rsort-of-an-integer-array/#comments</comments>
		<pubDate>Sat, 03 Oct 2009 20:22:19 +0000</pubDate>
		<dc:creator>rmn</dc:creator>
				<category><![CDATA[snippets]]></category>

		<guid isPermaLink="false">http://cpptalk.wordpress.com/?p=307</guid>
		<description><![CDATA[Suppose you have an array of integers and a comparator function object. We would like to have the array sorted in a reverse order.. Using only one line of code. Find below a few ways to achieve just that using the STL and Boost libraries. More suggestions are most welcome. Can you think of more one-liners? [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cplusplus.co.il&amp;blog=8968104&amp;post=307&amp;subd=cpptalk&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://cplusplus.co.il/2009/10/03/one-line-rsort-of-an-integer-array/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4ceb7c3e96e1e6c9fbef377af219fc0a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rmn</media:title>
		</media:content>
	</item>
		<item>
		<title>Portable measurement of execution time</title>
		<link>http://cplusplus.co.il/2009/08/19/portable-measurement-of-execution-time/</link>
		<comments>http://cplusplus.co.il/2009/08/19/portable-measurement-of-execution-time/#comments</comments>
		<pubDate>Wed, 19 Aug 2009 16:44:54 +0000</pubDate>
		<dc:creator>rmn</dc:creator>
				<category><![CDATA[snippets]]></category>

		<guid isPermaLink="false">http://cpptalk.wordpress.com/?p=41</guid>
		<description><![CDATA[Once in a while so it happens that a programmer wishes to time his own creation. This article presents a simple and portable implementation of a Timer class which saves the time of its creation and computes the time it took until destruction, effectively measuring the runtime spent in the enclosing scope. Note that it&#8217;s [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cplusplus.co.il&amp;blog=8968104&amp;post=41&amp;subd=cpptalk&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://cplusplus.co.il/2009/08/19/portable-measurement-of-execution-time/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4ceb7c3e96e1e6c9fbef377af219fc0a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rmn</media:title>
		</media:content>
	</item>
		<item>
		<title>Implementing toString() and fromString() using std::stringstream</title>
		<link>http://cplusplus.co.il/2009/08/16/implementing-tostring-and-fromstring-using-stdstringstream/</link>
		<comments>http://cplusplus.co.il/2009/08/16/implementing-tostring-and-fromstring-using-stdstringstream/#comments</comments>
		<pubDate>Sun, 16 Aug 2009 18:59:45 +0000</pubDate>
		<dc:creator>rmn</dc:creator>
				<category><![CDATA[snippets]]></category>

		<guid isPermaLink="false">http://cpptalk.wordpress.com/?p=26</guid>
		<description><![CDATA[The classes istringstream &#38; ostringstream can be utilized to create generic, templated, toString() &#38; fromString() functions. This functionality (which is built-in in many languages, such as Java) may come in very handy, quite often. Here&#8217;s a proposed implementation for such a request: It is important to note that the type T has some constraints: In toString(): there must [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cplusplus.co.il&amp;blog=8968104&amp;post=26&amp;subd=cpptalk&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://cplusplus.co.il/2009/08/16/implementing-tostring-and-fromstring-using-stdstringstream/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4ceb7c3e96e1e6c9fbef377af219fc0a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rmn</media:title>
		</media:content>
	</item>
		<item>
		<title>Printing using std::copy</title>
		<link>http://cplusplus.co.il/2009/08/14/printing-using-stdcopy/</link>
		<comments>http://cplusplus.co.il/2009/08/14/printing-using-stdcopy/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 21:39:35 +0000</pubDate>
		<dc:creator>rmn</dc:creator>
				<category><![CDATA[snippets]]></category>

		<guid isPermaLink="false">http://cpptalk.wordpress.com/?p=17</guid>
		<description><![CDATA[From time to time we are required to print out a vector. It is possible to utilize the standard copy algorithm (std::copy) to do just that. Here&#8217;s how: Quite interesting if you think this through; you are able to use the copy algorithm to copy data to an output iterator. Are you familiar with any other [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cplusplus.co.il&amp;blog=8968104&amp;post=17&amp;subd=cpptalk&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://cplusplus.co.il/2009/08/14/printing-using-stdcopy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4ceb7c3e96e1e6c9fbef377af219fc0a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rmn</media:title>
		</media:content>
	</item>
	</channel>
</rss>
