0

From boost libraries, I found this example

enter image description here

I marked a line with a red arrow, indicating the notation that is confusing me.

Is this special to boost or is this some sort of anonymous function syntax? I wasn't aware that C++ or C had such notation. I only kind of recognize it from python and java experience.

EDL
  • 101
  • 2
  • 1
    It's called *direct initialization* see: https://en.cppreference.com/w/cpp/language/direct_initialization. – Frank May 26 '22 at 22:57

0 Answers0