| 164 | } |
| 165 | |
| 166 | std::shared_ptr<option_impl> message_impl::find_option(const std::shared_ptr<option_impl>& _option) const { |
| 167 | for (auto its_option : options_) { |
| 168 | if (its_option->equals(*_option)) |
| 169 | return its_option; |
| 170 | } |
| 171 | return nullptr; |
| 172 | } |
| 173 | |
| 174 | int16_t message_impl::get_option_index(const std::shared_ptr<option_impl>& _option) const { |
| 175 | int16_t i = 0; |