title: Trying to understand C++ function with two blocks of code
body: <p>I have the following type of function. I am confused on what kind of declaration is that? I am only used to traditional type (may be called something else) where I have one block of codes after declaration of function. But here are two. Can you tell me what will this do?</p>
  
  <pre><code>static void afunction(atype *atype)
  {
    {
  
           //Do stuff
  
    }
  
    {
           //Do stuff
      }
  }
  </code></pre>