title: can I std::find a string in a stringstream?
body: <p>I have a stringstream that I'd like to iterate and determine if a substring exists in it.</p>
  
  <p>I know that I could just convert to a string and do std::string::find(), but I was just hoping to avoid the conversion from stringstream to string if possible.</p>
  
  <p>I understand the following won't work because the istream_iterator uses char as its type (not string)</p>
  
  <pre><code>stringstream ssBody;
  string sFindThis;
  
  ...
  
  auto itr = std::find (
      istreambuf_iterator&lt;char&gt;(ssBody),
      istreambuf_iterator&lt;char&gt;(),
      sFindThis
  );
  </code></pre>
  
  <p>But can I somehow search for a string in stringstream with std::find or similar without a conversion to string?</p>