3 ms·
Or use unordered_set.
by Ono-Sendai 10y ago
Or use unordered_set.
- greg7mdp 10y agoWell, you certainly could, but unordered_set will use significantly more memory than the sorted vector or sparse_hash_set, and is actually slower than sparse_hash_set.