MCPcopy Create free account
hub / github.com/andreasfertig/programming-with-cpp20 / Keeper

Class Keeper

11.05-rangeBasedForLoopWithTemporary1/main.cpp:7–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include <vector>
6
7class Keeper {
8 std::vector<int> data{2, 3, 4};
9
10public:
11 ~Keeper() { std::cout << "dtor\n"; }
12
13 auto& items() { return data; }
14};
15
16Keeper GetKeeper()
17{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected