title: How to define a lambda function inside a struct in c++
body: <p>is there any possibility to have a lambda expression inside a struct in c++ . logic goes as follows.</p>
  
  <pre><code>struct alpha {
    &lt;lambda function&gt; {
     /* to do */
  }
  
  };
  
  int main()
  {
  int a =   //call the function inside the struct and compute.
  
  }
  </code></pre>