yword">if</span> (thisWeek.contains(today)) {}<span class="comment">//do something 

    //iterate and print the week</span>
    day_iterator itr(weekstart);
    <span class="keyword">while</span> (itr &lt;= weekend) {
     std::cout &lt;&lt; (*itr) &lt;&lt; std::endl;
     ++itr;
    }  
    <span class="comment">//input streaming</span> 
    std::stringstream ss(<span class="string">"2004-Jan-1"</span>);
    ss &gt;&gt; d3;

    <span class="comment">//date generator functions</span> 
    date d5 = next_w