title: What does this "return ~Result(0)" mean in C++?
body: <p>I have never seen this before... just curious to know what "return ~Result(0)" does. </p>
  
  <pre><code>Simple::Result Screen::pickPoint(const Point&amp; Point) const
      {
  
      if(scnr.hasPoint())
          return scnr.getIndex();
      else
          return ~Result(0);
      }
  </code></pre>