MCPcopy Create free account
hub / github.com/atraczyk/2d-engine / remove

Function remove

engine/src/utils.h:31–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29std::string resolveResourcePath(const char *relativePath);
30
31template <typename T> void remove(std::vector<T> &vec, size_t pos) {
32 typename std::vector<T>::iterator it = vec.begin();
33 std::advance(it, pos);
34 vec.erase(it);
35};
36
37template <typename T> int sgn(T val) { return (T(0) < val) - (val < T(0)); };
38

Callers 3

G_updateFunction · 0.85
updateMethod · 0.85
resolveItemCollisionsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected