| 59 | |
| 60 | template<typename B> |
| 61 | std::vector<B> |
| 62 | Encoder_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 | |
| 74 | template<typename B> |
| 75 | void |
nothing calls this directly
no outgoing calls
no test coverage detected