forked from organicmaps/organicmaps
feature::Metadata::Has() for convenience.
This commit is contained in:
parent
96807088bf
commit
10acff2d6e
1 changed files with 7 additions and 1 deletions
|
@ -34,9 +34,15 @@ protected:
|
|||
}
|
||||
|
||||
public:
|
||||
bool Has(uint8_t type) const
|
||||
{
|
||||
auto const it = m_metadata.find(type);
|
||||
return it != m_metadata.end();
|
||||
}
|
||||
|
||||
string Get(uint8_t type) const
|
||||
{
|
||||
auto it = m_metadata.find(type);
|
||||
auto const it = m_metadata.find(type);
|
||||
return (it == m_metadata.end()) ? string() : it->second;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue