You can use an explicit object parameter with a deduced type:
auto dfs = [&](this const auto &self, int x) -> void { // .... self(x);};dfs(0); // `self` is `dfs`
This is a C++23 feature
You can use an explicit object parameter with a deduced type:
auto dfs = [&](this const auto &self, int x) -> void { // .... self(x);};dfs(0); // `self` is `dfs`
This is a C++23 feature