Use a std::set instead.