title: std::function vs function pointer
body: <ul>
  <li><p>Is there any differences?</p></li>
  <li><p>Which is the best way to "save/transfer" function?</p>
  
  <pre><code>function&lt;void(int)&gt; fcn = 
                      [](int par) {std::cout&lt;&lt;"fcn: "&lt;&lt;par&lt;&lt;std::endl; };
  void(*fcn_a)(int) = 
                      [](int par) {std::cout&lt;&lt;"fcn_a: "&lt;&lt;par&lt;&lt;std::endl; };
  
  
  fcn(12);
  fcn_a(12);
  </code></pre></li>
  </ul>