Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/andreasfertig/programming-with-cpp20
/ NotCopyable
Class
NotCopyable
01.27-optional2/main.cpp:20–23 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
18
{}
19
20
struct NotCopyable {
21
NotCopyable(const NotCopyable&) = delete;
22
NotCopyable& operator=(const NotCopyable&) = delete;
23
};
24
25
int main()
26
{
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected