Pretty way to say "foo not in {bar, baz}" in C++11/14
<p>I'm writing C++ and missing the clarity of Python. But I know that C++ has been evolving and wondering if there's a nicer way to do something like this:</p>

<pre><code>if (foo != bar &amp;&amp; foo != baz)
</code></pre>

<p>In Python I would do this:</p>

<pre><code>if foo not in {bar, baz}:
</code></pre>

<p>Is there a fancy feature in C++11 or C++14 that allows me to do something similarly readable?</p>

<p>Edit: A lot of people are wondering why I'm trying to replace something so short. I'm not, but I didn't want to make my example as ugly and unreadable as the original code. It's more like:</p>

<pre><code>if (somelongvariablename.somelongmethodname() !=
    SomeReallyLongNamespace::AndAnotherSubClassname::A_LONG_CONSTANT_NAME &amp;&amp;
    somelongvariablename.somelongmethodname() !=
    SomeReallyLongNamespace::AndAnotherSubClassname::ANOTHER_LONG_CONSTANT_NAME) {
    // foo
</code></pre>