title: What is the meaning of, returning value being a class name followed by a pair of empty parentheses?
body: <p>I want to know what it means for a function to return a class/structure name followed by parentheses. </p>
  
  <p>For example:</p>
  
  <pre><code>struct X{...}; //structure with static members
  
  X g(){ return X(); }; 
  </code></pre>
  
  <p>I found this in the following link:
  <a href="https://en.cppreference.com/w/cpp/language/static#Explanation" rel="nofollow noreferrer">https://en.cppreference.com/w/cpp/language/static#Explanation</a></p>