| 516 | } |
| 517 | |
| 518 | static bool CompareSessionOptionMaps(const std::map<std::string, SessionOptionValue>& a, |
| 519 | const std::map<std::string, SessionOptionValue>& b) { |
| 520 | if (a.size() != b.size()) { |
| 521 | return false; |
| 522 | } |
| 523 | for (const auto& [k, v] : a) { |
| 524 | if (const auto it = b.find(k); it == b.end()) { |
| 525 | return false; |
| 526 | } else { |
| 527 | const auto& b_v = it->second; |
| 528 | if (v.index() != b_v.index()) { |
| 529 | return false; |
| 530 | } |
| 531 | if (v != b_v) { |
| 532 | return false; |
| 533 | } |
| 534 | } |
| 535 | } |
| 536 | return true; |
| 537 | } |
| 538 | |
| 539 | // SetSessionOptionErrorValue |
| 540 | |