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

Method CreateNull

eval/public/cel_value.h:183–183  ·  view source on GitHub ↗

We will use factory methods instead of public constructors The reason for this is the high risk of implicit type conversions between bool/int/pointer types. We rely on copy elision to avoid extra copying.

Source from the content-addressed store, hash-verified

181 // between bool/int/pointer types.
182 // We rely on copy elision to avoid extra copying.
183 static CelValue CreateNull() { return CelValue(NullType()); }
184
185 // Transitional factory for migrating to null types.
186 static CelValue CreateNullTypedValue() { return CelValue(NullType()); }

Callers

nothing calls this directly

Calls 2

CelValueClass · 0.85
NullTypeClass · 0.50

Tested by

no test coverage detected