浏览该文件的文档.
34 using Map = std::multimap<std::string,Ptr>;
35 using iterator =
typename Map::iterator;
48 for (
auto it=range.first; it!=range.second; )
50 if (it->second==def) it =
m_map.erase(it);
else ++it;
56 std::pair<const_iterator,const_iterator>
find(
const QCString &name)
const
65 return m_map.equal_range(name.
str());
73 size_t size()
const {
return m_map.size(); }
typename Map::iterator iterator
std::pair< const_iterator, const_iterator > find(const QCString &name) const
Find the list of symbols stored under key name Returns a pair of iterators pointing to the start and ...
typename Map::const_iterator const_iterator
void add(const QCString &name, Ptr def)
Add a symbol def into the map under key name
void remove(const QCString &name, Ptr def)
Remove a symbol def from the map that was stored under key name
Class implementing a symbol map that maps symbol names to objects.
std::multimap< std::string, Ptr > Map
This is an alternative implementation of QCString.