MCPcopy Create free account
hub / github.com/antmachineintelligence/mtgbmcode / ConstPtrInVectorWrapper

Function ConstPtrInVectorWrapper

include/LightGBM/utils/common.h:634–640  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

632
633template<typename T>
634std::vector<const T*> ConstPtrInVectorWrapper(const std::vector<std::unique_ptr<T>>& input) {
635 std::vector<const T*> ret;
636 for (auto t = input.begin(); t !=input.end(); ++t) {
637 ret.push_back(t->get());
638 }
639 return ret;
640}
641
642template<typename T1, typename T2>
643inline static void SortForPair(std::vector<T1>* keys, std::vector<T2>* values, size_t start, bool is_reverse = false) {

Callers

nothing calls this directly

Calls 4

push_backMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected