title: Line of code that I have never seen before
body: <p>This is in a piece of C++ code I am looking through at the moment but I have never seen it before. Can someone tell me what it means? Is it just setting the bool to true if the searchText is found?</p>
  
  <pre><code>size_t startPos = searchString.find("searchText");
  bool found = startPos != std::string::npos;
  </code></pre>