MCPcopy Create free account
hub / github.com/PDAL/PDAL / replaceOrPut

Method replaceOrPut

pdal/ArtifactManager.hpp:73–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71
72 template<typename T>
73 bool replaceOrPut(const std::string& name, std::shared_ptr<T> art)
74 {
75 if (!replace(name, art))
76 return put(name, art);
77 return true;
78 }
79
80 bool erase(const std::string& name)
81 {

Callers 1

TESTFunction · 0.80

Calls 2

replaceFunction · 0.70
putFunction · 0.50

Tested by 1

TESTFunction · 0.64