Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Apress/beginning-cpp20
/ Carton
Method
Carton
Examples/NoModules/Chapter 14/Ex14_01/Carton.h:12–13 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
10
{
11
public:
12
explicit Carton(std::string_view material =
"Cardboard"
) // Constructor
13
: m_material{material} {}
14
15
private:
16
std::string m_material;
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected