| 41 | // Opt into Variant-Like protocol. |
| 42 | template <String::Storage S> |
| 43 | auto String::get_if() |
| 44 | { |
| 45 | if constexpr (S == Local) |
| 46 | return index() == Local ? &local : nullptr; |
| 47 | else if constexpr (S == Remote) |
| 48 | return index() == Remote ? &remote : nullptr; |
| 49 | } |
| 50 | |
| 51 | template <String::Storage S, typename Pat> |
| 52 | auto asEnum(Pat &&pat) |
nothing calls this directly
no outgoing calls
no test coverage detected