MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / insert

Function insert

dds/DCPS/Util.h:107–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105
106template <typename Container, typename ValueType>
107int insert(
108 Container& c,
109 const ValueType& v)
110{
111 if (c.find(v) == c.end()) {
112 if (c.insert(v).second) {
113 return 0;
114 }
115
116 return -1;
117 }
118
119 return 1;
120}
121
122template <typename Container, typename ValueType>
123int remove(

Callers 7

insertMethod · 0.85
insertMethod · 0.85
create_publisherMethod · 0.85
create_subscriberMethod · 0.85
insertMethod · 0.85

Calls 3

findMethod · 0.45
endMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected