MCPcopy Create free account
hub / github.com/Xtra-Computing/thundersvm / get

Method get

include/thundersvm/util/log.h:1571–1577  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1569/// in order to validate pointer.
1570 template <typename T, typename T2>
1571 T_Ptr* get(const T& arg1, const T2 arg2) {
1572 iterator iter = std::find_if(this->list().begin(), this->list().end(), Pred(arg1, arg2));
1573 if (iter != this->list().end() && *iter != nullptr) {
1574 return *iter;
1575 }
1576 return nullptr;
1577 }
1578
1579 private:
1580 virtual void deepCopy(const AbstractRegistry<T_Ptr, std::vector<T_Ptr*>>& sr) {

Callers

nothing calls this directly

Calls 2

endMethod · 0.80
beginMethod · 0.45

Tested by

no test coverage detected