Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You get a lot of the things that are coming in C++0x. But aside from that generality, some of the better specifics are a simple <a href="https://stackoverflow.com/questions/130186/ie-textrange-select-method-not-working-properly">regex library</a>, a casting library for <a href="http://www.boost.org/doc/libs/1_36_0/libs/conversion/lexical_cast.htm" rel="nofollow noreferrer">casting from strings to ints</a> (Lexical cast):</p> <pre><code>int iResult = 0; try { iResult = lexical_cast&lt;int&gt;("4"); } catch(bad_lexical_cast &amp;) { cout &lt;&lt; "Unable to cast string to int"; } </code></pre> <p>A <a href="http://www.boost.org/doc/libs/1_36_0/doc/html/date_time.html" rel="nofollow noreferrer">date/time library</a>, among others...</p> <pre><code>using namespace boost::gregorian; date weekstart(2002,Feb,1); date thursday_next = next_weekday(weekstart, Thursday); // following Thursday </code></pre> <p>There's also a <a href="http://www.boost.org/doc/libs/1_36_0/libs/python/doc/index.html" rel="nofollow noreferrer">Python interface</a> (Boost Python), a <a href="http://spirit.sourceforge.net/" rel="nofollow noreferrer">lexer/parser DSL</a> (Boost Spirit):</p> <pre><code>// A grammar in C++ for equations group = '(' &gt;&gt; expression &gt;&gt; ')'; factor = integer | group; term = factor &gt;&gt; *(('*' &gt;&gt; factor) | ('/' &gt;&gt; factor)); expression = term &gt;&gt; *(('+' &gt;&gt; term) | ('-' &gt;&gt; term)); </code></pre> <p>and that's just scratching the surface...</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload