Skip to content
  • Mark OLESEN's avatar
    ENH: refine SpanStream and CharStream methods · 3693d61e
    Mark OLESEN authored and Andrew Heather's avatar Andrew Heather committed
    - support std::string_view (c++17) or span view (older c++) of stream
      buffer contents. This simplifies formatting + reparsing.
    
      Example,
    
          OCharStream os;
          os << ...;
    
          ISpanStream is(os.view());
          is >> ...;
    
    - additional release() method for ICharStream, OCharStream
      that returns the contents as a DynamicList<char> and resets the stream.
    
    - provide a str() method for API compatibility with older
      std::ostringstream etc.
    3693d61e