MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / insertIfNotExists

Method insertIfNotExists

include/ifilesystem.h:28–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26{
27public:
28 bool insertIfNotExists(const std::string& path)
29 {
30 if (std::find(begin(), end(), path) != end())
31 {
32 return false;
33 }
34
35 push_back(path);
36 return true;
37 }
38};
39
40/// Visibility of an asset in the mod installation

Callers 1

initialiseVfsMethod · 0.80

Calls 4

beginFunction · 0.85
endFunction · 0.85
push_backFunction · 0.85
findFunction · 0.50

Tested by

no test coverage detected