I found this c++ code but I can't understand this syntax:
auto path_dbus = [&](DBus::Connection &bus) {
...
};
It is a lambda function that:
[&]
(DBus::Connection&)
{...}
To break down that line:
auto path_dbus = [&] (DBus::Connection &bus) {... };
^capture ^arguments ^work