MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / CopyImpl

Function CopyImpl

common/ast/metadata.cc:130–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130TypeSpecKind CopyImpl(const TypeSpecKind& other) {
131 return absl::visit(
132 absl::Overload(
133 [](const std::unique_ptr<TypeSpec>& other) -> TypeSpecKind {
134 if (other == nullptr) {
135 return std::make_unique<TypeSpec>();
136 }
137 return std::make_unique<TypeSpec>(*other);
138 },
139 [](const auto& other) -> TypeSpecKind {
140 // Other variants define copy ctor.
141 return other;
142 }),
143 other);
144}
145
146} // namespace
147

Callers 2

TypeSpecMethod · 0.85
metadata.ccFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected