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

Method Share

05.19-stdFmtFormattingShares0/main.cpp:17–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15
16public:
17 Share(std::string name, double price, double priceDelta)
18 : mName{name}
19 , mPrice{price}
20 , mPriceDelta{priceDelta}
21 {}
22
23 auto name() const { return mName; }
24 auto price() const { return mPrice; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected