MCPcopy Create free account
hub / github.com/Bwar/CJsonObject / ReplaceAdd

Method ReplaceAdd

CJsonObject.hpp:120–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118 bool ReplaceAdd(const std::string& strKey, const std::string& strValue);
119 template <typename T>
120 bool ReplaceAdd(const std::string& strKey, T value)
121 {
122 if (KeyExist(strKey))
123 {
124 return(Replace(strKey, value));
125 }
126 return(Add(strKey, value));
127 }
128#else
129 template <typename T>
130 bool ReplaceAdd(const std::string& strKey, T&& value)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected