title: How to check if a string is in a list of strings?
body: <p>In Python, doing <code>if a in b</code> is really easy, and I'm wondering if there's an equivalent in C++.</p>
  <p>Specifically, I want to make a list of strings and check if an input is in that list.</p>
  <pre><code>std::string myinput;
  std::string mylist[] = {&quot;a&quot;, &quot;b&quot;, &quot;c&quot;};
  std::cin &gt;&gt; myinput;
  // if myinput is included in mylist
  // do other stuff here
  </code></pre>
  <p>How do I check using an <code>if</code> whether the input <code>myinput</code> is included in string <code>mylist</code>?</p>