Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Apress/design-patterns-in-modern-cpp
/ SetS
Method
SetS
Behavioral/Observer/observer_notes.cpp:41–49 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
39
}
40
41
virtual void SetS(const string cs)
42
{
43
// lock here too?
44
if (s != cs)
45
{
46
s = cs;
47
notifyListeners();
48
}
49
}
50
51
void addListener(Listener* l)
52
{
Callers
1
cppnow_talk
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected