tegory;
    container_source(Container& container) 
        : container_(container), pos_(<SPAN CLASS='numeric_literal'>0</SPAN>)
        { }
    std::streamsize read(char_type* s, std::streamsize n)
    {
        <SPAN CLASS='keyword'>using</SPAN> <SPAN CLASS='keyword'>namespace</SPAN> std;
        streamsize amt = <SPAN CLASS='keyword'>static_cast</SPAN>&lt;streamsize&gt;(container_.size() - pos_);
        streamsize result = (min)(n, amt);
        <SPAN CLASS='keyword'>if</SPAN> (result != <SPAN CLASS='n