| 39 | } |
| 40 | |
| 41 | bool Bundle::optBool(const std::string& key, bool& out) const { |
| 42 | auto entry = this->entries.find(key); |
| 43 | if (entry != std::end(this->entries) && entry->second.type == Type::Bool) { |
| 44 | out = entry->second.value_bool; |
| 45 | return true; |
| 46 | } else { |
| 47 | return false; |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | bool Bundle::optInt32(const std::string& key, int32_t& out) const { |
| 52 | auto entry = this->entries.find(key); |
no outgoing calls
no test coverage detected