We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
class Jan { std::unique_ptr bar; };
class Foo { public: Foo(Bar& bar) : bar(bar) {}
void Purr() { // use bar, but how do we know Jan didn't trash his bar? }
private: Bar& bar; }
int main() { Jan jan; // jan owns a bar }