| 6 | # include <vector> |
| 7 | |
| 8 | class Keeper { // #A |
| 9 | std::vector<int> data{2, 3, 4}; |
| 10 | |
| 11 | public: |
| 12 | ~Keeper() { std::cout << "dtor\n"; } |
| 13 | |
| 14 | // #B Returns by reference |
| 15 | auto& items() { return data; } |
| 16 | }; |
| 17 | |
| 18 | Keeper GetKeeper() // #C Returns by value |
| 19 | { |
nothing calls this directly
no outgoing calls
no test coverage detected