ctags icon indicating copy to clipboard operation
ctags copied to clipboard

C++: Structured bindings

Open masatake opened this issue 4 years ago • 0 comments

Described in http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0144r2.pdf

input.cc

#include <tuple>

std::tuple<int, int> f() {
  return {9, 2};
}

int main(void)
{
  auto [a, b] = f();
  return a + b;
}

g++ accepts this input.

ctags should extract a and b.

masatake avatar Dec 07 '21 13:12 masatake