API of std::set and std::map is the way i implemented it