MCPcopy Create free account
hub / github.com/aff3ct/aff3ct / _find_items

Method _find_items

src/Module/Encoder/LDPC/QC/Encoder_LDPC_QC_fast.cpp:61–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59
60template<typename B>
61std::vector<B>
62Encoder_LDPC_QC_fast<B>::_find_items(std::vector<B> v, int target)
63{
64 std::vector<B> indices;
65 auto it = v.begin();
66 while ((it = std::find_if(it, v.end(), [target](B& e) { return e == target; })) != v.end())
67 {
68 indices.push_back(std::distance(v.begin(), it));
69 it++;
70 }
71 return indices;
72}
73
74template<typename B>
75void

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected