MCPcopy Create free account
hub / github.com/Compaile/ctrack / count_distinct_field_values

Function count_distinct_field_values

include/ctrack.hpp:131–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129
130 template <typename T, typename Field>
131 size_t count_distinct_field_values(const std::vector<T> &vec, Field T::*field)
132 {
133 return get_distinct_field_values(vec, field).size();
134 }
135
136 template <typename StructType, typename MemberType>
137 void order_pointer_vector_by_field(std::vector<StructType *> &vec, MemberType StructType::*member, bool asc = true)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected