title: Disabling check statements in C++
body: <p>Say that my main code calls functions like <code>myarray(i)</code> where the length of <code>myarray</code> is <code>N</code>. During the development I would probably want to have a <code>CheckIndex</code> function inside the <code>()</code>overload. However, this turns out to waste computation time when the number of iterations is large. Another example would be to check if there is consistency in the dimensions of two matrices before adding them, or checking if the denominator in this expression <code>my_2D_array_instance/value</code> where <code>value</code> is a <code>double</code>, is not too small or zero.</p>
  <p>My question is if there is a way to give the option to the user to tell the compiler &quot;skip those checks&quot; and if yes, how to do it?</p>