MCPcopy Create free account
hub / github.com/OpenDriveLab/OpenLane / ReplaceAdd

Method ReplaceAdd

eval/LANE_evaluation/lane2d/src/CJsonObject.cpp:1572–1579  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1570
1571#if __cplusplus < 201101L
1572bool CJsonObject::ReplaceAdd(const std::string& strKey, const CJsonObject& oJsonObject)
1573{
1574 if (KeyExist(strKey))
1575 {
1576 return(Replace(strKey, oJsonObject));
1577 }
1578 return(Add(strKey, oJsonObject));
1579}
1580
1581bool CJsonObject::ReplaceAdd(const std::string& strKey, const std::string& strValue)
1582{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected