title: Does C++ have a way to ignore an exception from a function?
body: <p>I created a function that throws an exception, but under some circumstances I want it to simply ignore this exception.</p>
  
  <p>I wrote my code like this, but it's not quite elegant:</p>
  
  <pre><code>try {
      myFunction();
  } catch (...) {}
  </code></pre>
  
  <p>Does C++ another way to write this?</p>