title: How to use std::any_of for a beginner?
body: <p>I want to compare one value against several others and check if it matches at least one of those values, I assumed it would be something like</p>
  
  <pre><code>if (x = any_of(1, 2 ,3)
     // do something
  </code></pre>
  
  <p>But the examples of it I've seen online have been</p>
  
  <pre><code>bool any_of(InputIt first, InputIt last, UnaryPredicate)
  </code></pre>
  
  <p>What does that mean?</p>
  
  <p>New to c++ so apologies if this is a stupid question.</p>