Family of Get... methods. Return values if requested type matches the stored one.
| 71 | // Family of Get... methods. Return values if requested type matches the |
| 72 | // stored one. |
| 73 | absl::optional<int64_t> GetInt64Key() const { |
| 74 | return absl::holds_alternative<int64_t>(value_) |
| 75 | ? absl::optional<int64_t>(absl::get<1>(value_)) |
| 76 | : absl::nullopt; |
| 77 | } |
| 78 | |
| 79 | absl::optional<uint64_t> GetUint64Key() const { |
| 80 | return absl::holds_alternative<uint64_t>(value_) |
no outgoing calls