| 1547 | } |
| 1548 | |
| 1549 | size_t |
| 1550 | count(const std::string& o) const |
| 1551 | { |
| 1552 | auto iter = m_keys.find(o); |
| 1553 | if (iter == m_keys.end()) |
| 1554 | { |
| 1555 | return 0; |
| 1556 | } |
| 1557 | |
| 1558 | auto viter = m_values.find(iter->second); |
| 1559 | |
| 1560 | if (viter == m_values.end()) |
| 1561 | { |
| 1562 | return 0; |
| 1563 | } |
| 1564 | |
| 1565 | return viter->second.count(); |
| 1566 | } |
| 1567 | |
| 1568 | const OptionValue& |
| 1569 | operator[](const std::string& option) const |