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

Method AsUint

internal/number.h:239–241  ·  view source on GitHub ↗

Return unsigned int64 representation for the value. Caller must guarantee the underlying value is representable as an uint.

Source from the content-addressed store, hash-verified

237 // Caller must guarantee the underlying value is representable as an
238 // uint.
239 CEL_ABSL_VISIT_CONSTEXPR uint64_t AsUint() const {
240 return absl::visit(internal::ConversionVisitor<uint64_t>(), value_);
241 }
242
243 // For key lookups, check if the conversion to signed int is lossless.
244 CEL_ABSL_VISIT_CONSTEXPR bool LosslessConvertibleToInt() const {

Callers 1

TESTFunction · 0.45

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.36