// Checks whether all elements of a vector are unique #ifndef GENERS_ALLUNIQUE_HH_ #define GENERS_ALLUNIQUE_HH_ #include namespace gs { template inline bool allUnique(const std::vector& v) { const unsigned long sz = v.size(); if (sz == 0UL) return true; const T* buf = &v[0]; for (unsigned long i=1; i