What does the & (ampersand) at the end of member function signature mean?
Ref-qualifiers – introduced in C++11 Ref-qualifiers is not C++17 feature (looking at the tag of the question), but was a feature introduced in C++11. struct Foo { void bar() const & { std::cout << “const lvalue Foo\n”; } void bar() & { std::cout << “lvalue Foo\n”; } void bar() const && { std::cout << “const … Read more