Is there any overhead when using the default capture mode?
{ Foo foo = ...; Bar bar = ...; [&]() { write(foo); } } { Foo foo = ...; Bar bar = ...; [&foo]() { write(foo); } }
To find out if there is any cost to using the first bar associated with the capture, even if it is not used?
source share