| 101 | OptionalProperties() : value(EnumType::kSet) {} |
| 102 | OptionalProperties(const OptionalProperties &) = default; |
| 103 | ~OptionalProperties() { |
| 104 | // Reset value to detect use-after-destruction. |
| 105 | // This is set to a specific value rather than nullopt to ensure that |
| 106 | // the memory that contains the value gets re-written. |
| 107 | value = EnumType::kUnset; |
| 108 | } |
| 109 | |
| 110 | OptionalEnumValue &access_by_ref() { return value; } |
| 111 | OptionalEnumValue access_by_copy() { return value; } |
nothing calls this directly
no outgoing calls
no test coverage detected