Home
last modified time | relevance | path

Searched refs:known_ids_ (Results 1 – 2 of 2) sorted by relevance

/external/webrtc/rtc_base/
Dunique_id_generator.cc22 UniqueRandomIdGenerator::UniqueRandomIdGenerator() : known_ids_() {} in UniqueRandomIdGenerator()
24 : known_ids_(known_ids.begin(), known_ids.end()) {} in UniqueRandomIdGenerator()
29 RTC_CHECK_LT(known_ids_.size(), std::numeric_limits<uint32_t>::max() - 1); in GenerateId()
31 auto pair = known_ids_.insert(CreateRandomNonZeroId()); in GenerateId()
39 return known_ids_.insert(value).second; in AddKnownId()
Dunique_id_generator.h52 std::set<TIntegral> known_ids_; variable
79 std::set<uint32_t> known_ids_;
112 : counter_(0), known_ids_(known_ids.begin(), known_ids.end()) {} in UniqueNumberGenerator()
121 auto pair = known_ids_.insert(counter_++); in GenerateNumber()
130 return known_ids_.insert(value).second; in AddKnownId()