title: would return 0 using C++ in a class outside of main close the application?
body: <p>I'm currently working on implementing patch files in some code, and apparently one of the patch files uses return 0 in a class outside of the main. I know return 0 would close the application if it was in the main function, however I'm not sure about how it would function in a class outside of the main function. Basically the code could be summed up like this in pseudocode:</p>
  
  <pre><code>boost::uint64_t
  namespace::class(etc. etc.)
  {
  
     if (method.isValid)
     {
        //do stuff
     }
  return 0;
  }
  </code></pre>
  
  <p>Normally when I think of return 0 in C++, I think of exiting the application by calling it in main, however in this case, I'm not sure if this would exit the application, or just the class's functionality/the class it self. Could someone please explain what the return 0 would actually be doing in this situation?</p>
  
  <p>Thanks,
  Flyboy</p>