What is the c++ equivalent of Javascript's "in"?
<p>I'm trying to check whether a string exists in an array in as little lines as possible example:</p>

<pre><code>string foo[] = {blah,blahhh,blahhhh}
string bar = "blah";

if (bar in foo){
cout &lt;&lt; "true";
}else {
cout &lt;&lt; "false";
}
</code></pre>
