Coverage Report

Created: 2026-11-21 06:12

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/proc/self/cwd/runtime/function_adapter.h
Line
Count
Source
1
// Copyright 2023 Google LLC
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
//     https://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
//
15
// Definitions for template helpers to wrap C++ functions as CEL extension
16
// function implementations.
17
18
#ifndef THIRD_PARTY_CEL_CPP_RUNTIME_FUNCTION_ADAPTER_H_
19
#define THIRD_PARTY_CEL_CPP_RUNTIME_FUNCTION_ADAPTER_H_
20
21
#include <cstddef>
22
#include <functional>
23
#include <memory>
24
#include <tuple>
25
#include <type_traits>
26
#include <utility>
27
#include <vector>
28
29
#include "absl/base/nullability.h"
30
#include "absl/functional/any_invocable.h"
31
#include "absl/status/status.h"
32
#include "absl/status/statusor.h"
33
#include "absl/strings/str_cat.h"
34
#include "absl/strings/string_view.h"
35
#include "absl/types/span.h"
36
#include "common/function_descriptor.h"
37
#include "common/value.h"
38
#include "internal/status_macros.h"
39
#include "runtime/function.h"
40
#include "runtime/internal/function_adapter.h"
41
#include "runtime/register_function_helper.h"
42
#include "google/protobuf/arena.h"
43
#include "google/protobuf/descriptor.h"
44
#include "google/protobuf/message.h"
45
46
namespace cel {
47
48
namespace runtime_internal {
49
50
template <typename T>
51
struct AdaptedTypeTraits {
52
  using AssignableType = T;
53
54
22.1M
  static T ToArg(AssignableType v) { return v; }
cel::runtime_internal::AdaptedTypeTraits<double>::ToArg(double)
Line
Count
Source
54
300k
  static T ToArg(AssignableType v) { return v; }
cel::runtime_internal::AdaptedTypeTraits<long>::ToArg(long)
Line
Count
Source
54
15.0M
  static T ToArg(AssignableType v) { return v; }
cel::runtime_internal::AdaptedTypeTraits<unsigned long>::ToArg(unsigned long)
Line
Count
Source
54
6.76M
  static T ToArg(AssignableType v) { return v; }
cel::runtime_internal::AdaptedTypeTraits<bool>::ToArg(bool)
Line
Count
Source
54
3.92k
  static T ToArg(AssignableType v) { return v; }
cel::runtime_internal::AdaptedTypeTraits<absl::lts_20260526::Duration>::ToArg(absl::lts_20260526::Duration)
Line
Count
Source
54
6.93k
  static T ToArg(AssignableType v) { return v; }
cel::runtime_internal::AdaptedTypeTraits<absl::lts_20260526::Time>::ToArg(absl::lts_20260526::Time)
Line
Count
Source
54
5.72k
  static T ToArg(AssignableType v) { return v; }
Unexecuted instantiation: cel::runtime_internal::AdaptedTypeTraits<cel::ListValue>::ToArg(cel::ListValue)
Unexecuted instantiation: cel::runtime_internal::AdaptedTypeTraits<cel::Value>::ToArg(cel::Value)
cel::runtime_internal::AdaptedTypeTraits<cel::StringValue>::ToArg(cel::StringValue)
Line
Count
Source
54
8.70k
  static T ToArg(AssignableType v) { return v; }
cel::runtime_internal::AdaptedTypeTraits<cel::BytesValue>::ToArg(cel::BytesValue)
Line
Count
Source
54
539
  static T ToArg(AssignableType v) { return v; }
55
};
56
57
// Specialization for cref parameters without forcing a temporary copy of the
58
// underlying handle argument.
59
template <>
60
struct AdaptedTypeTraits<const Value&> {
61
  using AssignableType = const Value*;
62
63
2.36k
  static std::reference_wrapper<const Value> ToArg(AssignableType v) {
64
2.36k
    return *v;
65
2.36k
  }
66
};
67
68
template <>
69
struct AdaptedTypeTraits<const StringValue&> {
70
  using AssignableType = const StringValue*;
71
72
245k
  static std::reference_wrapper<const StringValue> ToArg(AssignableType v) {
73
245k
    return *v;
74
245k
  }
75
};
76
77
template <>
78
struct AdaptedTypeTraits<const BytesValue&> {
79
  using AssignableType = const BytesValue*;
80
81
5.80k
  static std::reference_wrapper<const BytesValue> ToArg(AssignableType v) {
82
5.80k
    return *v;
83
5.80k
  }
84
};
85
86
// Partial specialization for other cases.
87
//
88
// These types aren't referenceable since they aren't actually
89
// represented as alternatives in the underlying variant.
90
//
91
// This still requires an implicit copy and corresponding ref-count increase.
92
template <typename T>
93
struct AdaptedTypeTraits<const T&> {
94
  using AssignableType = T;
95
96
732k
  static T ToArg(AssignableType v) { return v; }
cel::runtime_internal::AdaptedTypeTraits<cel::ListValue const&>::ToArg(cel::ListValue)
Line
Count
Source
96
732k
  static T ToArg(AssignableType v) { return v; }
cel::runtime_internal::AdaptedTypeTraits<cel::MapValue const&>::ToArg(cel::MapValue)
Line
Count
Source
96
104
  static T ToArg(AssignableType v) { return v; }
Unexecuted instantiation: cel::runtime_internal::AdaptedTypeTraits<cel::NullValue const&>::ToArg(cel::NullValue)
Unexecuted instantiation: cel::runtime_internal::AdaptedTypeTraits<cel::TypeValue const&>::ToArg(cel::TypeValue)
Unexecuted instantiation: cel::runtime_internal::AdaptedTypeTraits<cel::StructValue const&>::ToArg(cel::StructValue)
97
};
98
99
template <size_t I, typename... Args>
100
struct AdaptHelperImpl {
101
  template <typename T>
102
  static absl::Status Apply(absl::Span<const Value> input, T& output) {
103
    static_assert(sizeof...(Args) > 0);
104
    static_assert(std::tuple_size_v<T> == sizeof...(Args));
105
    CEL_RETURN_IF_ERROR(ValueToAdaptedVisitor{input[I]}(&std::get<I>(output)));
106
    if constexpr (I == sizeof...(Args) - 1) {
107
      return absl::OkStatus();
108
    } else {
109
      CEL_RETURN_IF_ERROR(
110
          (AdaptHelperImpl<I + 1, Args...>::template Apply<T>(input, output)));
111
    }
112
    return absl::OkStatus();
113
  }
114
};
115
116
template <typename... Args>
117
struct AdaptHelper {
118
  template <typename T>
119
  static absl::Status Apply(absl::Span<const Value> input, T& output) {
120
    return AdaptHelperImpl<0, Args...>::template Apply<T>(input, output);
121
  }
122
};
123
124
template <typename... Args>
125
struct ToArgsImpl {
126
  template <int I, typename T>
127
  struct El {
128
    using type = T;
129
    constexpr static size_t index = I;
130
  };
131
132
  template <typename... Es>
133
  struct ZipHolder {
134
    template <typename ResultType, typename TupleType, typename Op>
135
    static ResultType ToArgs(Op&& op, const TupleType& argbuffer,
136
                             const Function::InvokeContext& context) {
137
      return std::forward<Op>(op)(
138
          runtime_internal::AdaptedTypeTraits<typename Es::type>::ToArg(
139
              std::get<Es::index>(argbuffer))...,
140
          context);
141
    }
142
  };
143
144
  template <size_t... Is>
145
  static ZipHolder<El<Is, Args>...> MakeZip(const std::index_sequence<Is...>&) {
146
    return ZipHolder<El<Is, Args>...>{};
147
  }
148
};
149
150
template <typename... Args>
151
struct ToArgsHelper {
152
  template <typename ResultType, typename TupleType, typename Op>
153
  static ResultType Apply(Op&& op, const TupleType& argbuffer,
154
                          const Function::InvokeContext& context) {
155
    using Impl = ToArgsImpl<Args...>;
156
    using Zip = decltype(Impl::MakeZip(std::index_sequence_for<Args...>{}));
157
    return Zip::template ToArgs<ResultType>(std::forward<Op>(op), argbuffer,
158
                                            context);
159
  }
160
};
161
162
}  // namespace runtime_internal
163
164
// Adapter class for generating CEL extension functions from a one argument
165
// function.
166
//
167
// See documentation for Binary Function adapter for general recommendations.
168
//
169
// Example Usage:
170
//  double Invert(ValueManager&, double x) {
171
//   return 1 / x;
172
//  }
173
//
174
//  {
175
//    std::unique_ptr<CelExpressionBuilder> builder;
176
//
177
//    CEL_RETURN_IF_ERROR(
178
//      builder->GetRegistry()->Register(
179
//        UnaryFunctionAdapter<double, double>::CreateDescriptor("inv",
180
//        /*receiver_style=*/false),
181
//         UnaryFunctionAdapter<double, double>::WrapFunction(&Invert)));
182
//  }
183
//  // example CEL expression
184
//  inv(4) == 1/4 [true]
185
template <typename T>
186
class NullaryFunctionAdapter
187
    : public RegisterHelper<NullaryFunctionAdapter<T>> {
188
 public:
189
  using FunctionType =
190
      absl::AnyInvocable<T(const Function::InvokeContext&) const>;
191
192
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
193
    return std::make_unique<UnaryFunctionImpl>(std::move(fn));
194
  }
195
196
  template <typename F>
197
  static std::enable_if_t<
198
      std::is_invocable_v<F, const google::protobuf::DescriptorPool* absl_nonnull,
199
                          google::protobuf::MessageFactory* absl_nonnull,
200
                          google::protobuf::Arena* absl_nonnull>,
201
      std::unique_ptr<cel::Function>>
202
  WrapFunction(F&& function) {
203
    return WrapFunction([function = std::forward<F>(function)](
204
                            const Function::InvokeContext& context) -> T {
205
      return function(context.descriptor_pool(), context.message_factory(),
206
                      context.arena());
207
    });
208
  }
209
210
  template <typename F>
211
  static std::enable_if_t<std::is_invocable_v<F>,
212
                          std::unique_ptr<cel::Function>>
213
  WrapFunction(F&& function) {
214
    return WrapFunction([function = std::forward<F>(function)](
215
                            const Function::InvokeContext& context) -> T {
216
      return function();
217
    });
218
  }
219
220
  static FunctionDescriptor CreateDescriptor(absl::string_view name,
221
                                             bool receiver_style,
222
                                             bool is_strict) {
223
    return CreateDescriptor(name, receiver_style,
224
                            {is_strict, /*is_contextual=*/false});
225
  }
226
227
  static FunctionDescriptor CreateDescriptor(
228
      absl::string_view name, bool receiver_style,
229
      FunctionDescriptorOptions options = {}) {
230
    return FunctionDescriptor(name, receiver_style, {}, options);
231
  }
232
233
 private:
234
  class UnaryFunctionImpl : public Function {
235
   public:
236
    explicit UnaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
237
    absl::StatusOr<Value> Invoke(
238
        absl::Span<const Value> args,
239
        const Function::InvokeContext& context) const final {
240
      if (args.size() != 0) {
241
        return absl::InvalidArgumentError(
242
            "unexpected number of arguments for nullary function");
243
      }
244
245
      if constexpr (std::is_same_v<T, Value> ||
246
                    std::is_same_v<T, absl::StatusOr<Value>>) {
247
        return fn_(context);
248
      } else {
249
        T result = fn_(context);
250
251
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
252
      }
253
    }
254
255
   private:
256
    FunctionType fn_;
257
  };
258
};
259
260
// Adapter class for generating CEL extension functions from a one argument
261
// function.
262
//
263
// See documentation for Binary Function adapter for general recommendations.
264
//
265
// Example Usage:
266
//  double Invert(ValueManager&, double x) {
267
//   return 1 / x;
268
//  }
269
//
270
//  {
271
//    std::unique_ptr<CelExpressionBuilder> builder;
272
//
273
//    CEL_RETURN_IF_ERROR(
274
//      builder->GetRegistry()->Register(
275
//        UnaryFunctionAdapter<double, double>::CreateDescriptor("inv",
276
//        /*receiver_style=*/false),
277
//         UnaryFunctionAdapter<double, double>::WrapFunction(&Invert)));
278
//  }
279
//  // example CEL expression
280
//  inv(4) == 1/4 [true]
281
template <typename T, typename U>
282
class UnaryFunctionAdapter : public RegisterHelper<UnaryFunctionAdapter<T, U>> {
283
 public:
284
  using FunctionType =
285
      absl::AnyInvocable<T(U, const Function::InvokeContext&) const>;
286
287
1.35M
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
288
1.35M
    return std::make_unique<UnaryFunctionImpl>(std::move(fn));
289
1.35M
  }
cel::UnaryFunctionAdapter<cel::Value, long>::WrapFunction(absl::lts_20260526::AnyInvocable<cel::Value (long, cel::Function::InvokeContext const&) const>)
Line
Count
Source
287
67.6k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
288
67.6k
    return std::make_unique<UnaryFunctionImpl>(std::move(fn));
289
67.6k
  }
cel::UnaryFunctionAdapter<double, double>::WrapFunction(absl::lts_20260526::AnyInvocable<double (double, cel::Function::InvokeContext const&) const>)
Line
Count
Source
287
45.1k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
288
45.1k
    return std::make_unique<UnaryFunctionImpl>(std::move(fn));
289
45.1k
  }
cel::UnaryFunctionAdapter<absl::lts_20260526::StatusOr<long>, cel::ListValue const&>::WrapFunction(absl::lts_20260526::AnyInvocable<absl::lts_20260526::StatusOr<long> (cel::ListValue const&, cel::Function::InvokeContext const&) const>)
Line
Count
Source
287
45.1k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
288
45.1k
    return std::make_unique<UnaryFunctionImpl>(std::move(fn));
289
45.1k
  }
cel::UnaryFunctionAdapter<absl::lts_20260526::StatusOr<long>, cel::MapValue const&>::WrapFunction(absl::lts_20260526::AnyInvocable<absl::lts_20260526::StatusOr<long> (cel::MapValue const&, cel::Function::InvokeContext const&) const>)
Line
Count
Source
287
45.1k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
288
45.1k
    return std::make_unique<UnaryFunctionImpl>(std::move(fn));
289
45.1k
  }
cel::UnaryFunctionAdapter<bool, bool>::WrapFunction(absl::lts_20260526::AnyInvocable<bool (bool, cel::Function::InvokeContext const&) const>)
Line
Count
Source
287
45.1k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
288
45.1k
    return std::make_unique<UnaryFunctionImpl>(std::move(fn));
289
45.1k
  }
cel::UnaryFunctionAdapter<cel::Value, cel::Value>::WrapFunction(absl::lts_20260526::AnyInvocable<cel::Value (cel::Value, cel::Function::InvokeContext const&) const>)
Line
Count
Source
287
45.1k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
288
45.1k
    return std::make_unique<UnaryFunctionImpl>(std::move(fn));
289
45.1k
  }
cel::UnaryFunctionAdapter<long, cel::StringValue const&>::WrapFunction(absl::lts_20260526::AnyInvocable<long (cel::StringValue const&, cel::Function::InvokeContext const&) const>)
Line
Count
Source
287
45.1k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
288
45.1k
    return std::make_unique<UnaryFunctionImpl>(std::move(fn));
289
45.1k
  }
cel::UnaryFunctionAdapter<long, cel::BytesValue const&>::WrapFunction(absl::lts_20260526::AnyInvocable<long (cel::BytesValue const&, cel::Function::InvokeContext const&) const>)
Line
Count
Source
287
45.1k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
288
45.1k
    return std::make_unique<UnaryFunctionImpl>(std::move(fn));
289
45.1k
  }
cel::UnaryFunctionAdapter<cel::Value, absl::lts_20260526::Time>::WrapFunction(absl::lts_20260526::AnyInvocable<cel::Value (absl::lts_20260526::Time, cel::Function::InvokeContext const&) const>)
Line
Count
Source
287
270k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
288
270k
    return std::make_unique<UnaryFunctionImpl>(std::move(fn));
289
270k
  }
cel::UnaryFunctionAdapter<long, absl::lts_20260526::Duration>::WrapFunction(absl::lts_20260526::AnyInvocable<long (absl::lts_20260526::Duration, cel::Function::InvokeContext const&) const>)
Line
Count
Source
287
90.2k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
288
90.2k
    return std::make_unique<UnaryFunctionImpl>(std::move(fn));
289
90.2k
  }
cel::UnaryFunctionAdapter<cel::Value, cel::StringValue>::WrapFunction(absl::lts_20260526::AnyInvocable<cel::Value (cel::StringValue, cel::Function::InvokeContext const&) const>)
Line
Count
Source
287
22.5k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
288
22.5k
    return std::make_unique<UnaryFunctionImpl>(std::move(fn));
289
22.5k
  }
cel::UnaryFunctionAdapter<cel::BytesValue, cel::BytesValue>::WrapFunction(absl::lts_20260526::AnyInvocable<cel::BytesValue (cel::BytesValue, cel::Function::InvokeContext const&) const>)
Line
Count
Source
287
22.5k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
288
22.5k
    return std::make_unique<UnaryFunctionImpl>(std::move(fn));
289
22.5k
  }
cel::UnaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::BytesValue>, cel::StringValue const&>::WrapFunction(absl::lts_20260526::AnyInvocable<absl::lts_20260526::StatusOr<cel::BytesValue> (cel::StringValue const&, cel::Function::InvokeContext const&) const>)
Line
Count
Source
287
22.5k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
288
22.5k
    return std::make_unique<UnaryFunctionImpl>(std::move(fn));
289
22.5k
  }
cel::UnaryFunctionAdapter<double, long>::WrapFunction(absl::lts_20260526::AnyInvocable<double (long, cel::Function::InvokeContext const&) const>)
Line
Count
Source
287
22.5k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
288
22.5k
    return std::make_unique<UnaryFunctionImpl>(std::move(fn));
289
22.5k
  }
cel::UnaryFunctionAdapter<cel::Value, cel::StringValue const&>::WrapFunction(absl::lts_20260526::AnyInvocable<cel::Value (cel::StringValue const&, cel::Function::InvokeContext const&) const>)
Line
Count
Source
287
112k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
288
112k
    return std::make_unique<UnaryFunctionImpl>(std::move(fn));
289
112k
  }
cel::UnaryFunctionAdapter<double, unsigned long>::WrapFunction(absl::lts_20260526::AnyInvocable<double (unsigned long, cel::Function::InvokeContext const&) const>)
Line
Count
Source
287
22.5k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
288
22.5k
    return std::make_unique<UnaryFunctionImpl>(std::move(fn));
289
22.5k
  }
cel::UnaryFunctionAdapter<long, bool>::WrapFunction(absl::lts_20260526::AnyInvocable<long (bool, cel::Function::InvokeContext const&) const>)
Line
Count
Source
287
22.5k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
288
22.5k
    return std::make_unique<UnaryFunctionImpl>(std::move(fn));
289
22.5k
  }
cel::UnaryFunctionAdapter<cel::Value, double>::WrapFunction(absl::lts_20260526::AnyInvocable<cel::Value (double, cel::Function::InvokeContext const&) const>)
Line
Count
Source
287
67.6k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
288
67.6k
    return std::make_unique<UnaryFunctionImpl>(std::move(fn));
289
67.6k
  }
cel::UnaryFunctionAdapter<long, long>::WrapFunction(absl::lts_20260526::AnyInvocable<long (long, cel::Function::InvokeContext const&) const>)
Line
Count
Source
287
22.5k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
288
22.5k
    return std::make_unique<UnaryFunctionImpl>(std::move(fn));
289
22.5k
  }
cel::UnaryFunctionAdapter<long, absl::lts_20260526::Time>::WrapFunction(absl::lts_20260526::AnyInvocable<long (absl::lts_20260526::Time, cel::Function::InvokeContext const&) const>)
Line
Count
Source
287
22.5k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
288
22.5k
    return std::make_unique<UnaryFunctionImpl>(std::move(fn));
289
22.5k
  }
cel::UnaryFunctionAdapter<cel::Value, unsigned long>::WrapFunction(absl::lts_20260526::AnyInvocable<cel::Value (unsigned long, cel::Function::InvokeContext const&) const>)
Line
Count
Source
287
22.5k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
288
22.5k
    return std::make_unique<UnaryFunctionImpl>(std::move(fn));
289
22.5k
  }
cel::UnaryFunctionAdapter<cel::Value, cel::BytesValue const&>::WrapFunction(absl::lts_20260526::AnyInvocable<cel::Value (cel::BytesValue const&, cel::Function::InvokeContext const&) const>)
Line
Count
Source
287
22.5k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
288
22.5k
    return std::make_unique<UnaryFunctionImpl>(std::move(fn));
289
22.5k
  }
cel::UnaryFunctionAdapter<cel::StringValue, bool>::WrapFunction(absl::lts_20260526::AnyInvocable<cel::StringValue (bool, cel::Function::InvokeContext const&) const>)
Line
Count
Source
287
22.5k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
288
22.5k
    return std::make_unique<UnaryFunctionImpl>(std::move(fn));
289
22.5k
  }
cel::UnaryFunctionAdapter<cel::StringValue, long>::WrapFunction(absl::lts_20260526::AnyInvocable<cel::StringValue (long, cel::Function::InvokeContext const&) const>)
Line
Count
Source
287
22.5k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
288
22.5k
    return std::make_unique<UnaryFunctionImpl>(std::move(fn));
289
22.5k
  }
cel::UnaryFunctionAdapter<cel::StringValue, cel::StringValue>::WrapFunction(absl::lts_20260526::AnyInvocable<cel::StringValue (cel::StringValue, cel::Function::InvokeContext const&) const>)
Line
Count
Source
287
22.5k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
288
22.5k
    return std::make_unique<UnaryFunctionImpl>(std::move(fn));
289
22.5k
  }
cel::UnaryFunctionAdapter<cel::StringValue, unsigned long>::WrapFunction(absl::lts_20260526::AnyInvocable<cel::StringValue (unsigned long, cel::Function::InvokeContext const&) const>)
Line
Count
Source
287
22.5k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
288
22.5k
    return std::make_unique<UnaryFunctionImpl>(std::move(fn));
289
22.5k
  }
cel::UnaryFunctionAdapter<cel::Value, absl::lts_20260526::Duration>::WrapFunction(absl::lts_20260526::AnyInvocable<cel::Value (absl::lts_20260526::Duration, cel::Function::InvokeContext const&) const>)
Line
Count
Source
287
45.1k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
288
45.1k
    return std::make_unique<UnaryFunctionImpl>(std::move(fn));
289
45.1k
  }
cel::UnaryFunctionAdapter<unsigned long, unsigned long>::WrapFunction(absl::lts_20260526::AnyInvocable<unsigned long (unsigned long, cel::Function::InvokeContext const&) const>)
Line
Count
Source
287
22.5k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
288
22.5k
    return std::make_unique<UnaryFunctionImpl>(std::move(fn));
289
22.5k
  }
cel::UnaryFunctionAdapter<cel::Value, cel::Value const&>::WrapFunction(absl::lts_20260526::AnyInvocable<cel::Value (cel::Value const&, cel::Function::InvokeContext const&) const>)
Line
Count
Source
287
45.1k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
288
45.1k
    return std::make_unique<UnaryFunctionImpl>(std::move(fn));
289
45.1k
  }
290
291
  template <typename F>
292
  static std::enable_if_t<
293
      std::is_invocable_v<F, U, const google::protobuf::DescriptorPool* absl_nonnull,
294
                          google::protobuf::MessageFactory* absl_nonnull,
295
                          google::protobuf::Arena* absl_nonnull>,
296
      std::unique_ptr<cel::Function>>
297
  WrapFunction(F&& function) {
298
    return WrapFunction(
299
        [function = std::forward<F>(function)](
300
            U arg1, const Function::InvokeContext& context) -> T {
301
          return function(arg1, context.descriptor_pool(),
302
                          context.message_factory(), context.arena());
303
        });
304
  }
305
306
  template <typename F>
307
  static std::enable_if_t<std::is_invocable_v<F, U>,
308
                          std::unique_ptr<cel::Function>>
309
676k
  WrapFunction(F&& function) {
310
676k
    return WrapFunction(
311
676k
        [function = std::forward<F>(function)](
312
676k
            U arg1, const Function::InvokeContext& context) -> T {
313
11.0k
          return function(arg1);
314
11.0k
        });
arithmetic_functions.cc:_ZZN3cel20UnaryFunctionAdapterIddE12WrapFunctionIZNS_27RegisterArithmeticFunctionsERNS_16FunctionRegistryERKNS_14RuntimeOptionsEE3$_1EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_dEENS9_10unique_ptrINS_8FunctionENS9_14default_deleteISD_EEEEE4typeEOSB_ENKUldRKNSD_13InvokeContextEE_clEdSM_
Line
Count
Source
312
3.54k
            U arg1, const Function::InvokeContext& context) -> T {
313
3.54k
          return function(arg1);
314
3.54k
        });
_ZZN3cel20UnaryFunctionAdapterIN4absl12lts_202605268StatusOrIlEERKNS_9ListValueEE12WrapFunctionIRFS4_S7_EEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S7_EENSC_10unique_ptrINS_8FunctionENSC_14default_deleteISG_EEEEE4typeEOSE_ENKUlS7_RKNSG_13InvokeContextEE_clES7_SP_
Line
Count
Source
312
66
            U arg1, const Function::InvokeContext& context) -> T {
313
66
          return function(arg1);
314
66
        });
_ZZN3cel20UnaryFunctionAdapterIN4absl12lts_202605268StatusOrIlEERKNS_8MapValueEE12WrapFunctionIRFS4_S7_EEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S7_EENSC_10unique_ptrINS_8FunctionENSC_14default_deleteISG_EEEEE4typeEOSE_ENKUlS7_RKNSG_13InvokeContextEE_clES7_SP_
Line
Count
Source
312
104
            U arg1, const Function::InvokeContext& context) -> T {
313
104
          return function(arg1);
314
104
        });
Unexecuted instantiation: logical_functions.cc:_ZZN3cel20UnaryFunctionAdapterIbbE12WrapFunctionIZNS_24RegisterLogicalFunctionsERNS_16FunctionRegistryERKNS_14RuntimeOptionsEE3$_0EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_bEENS9_10unique_ptrINS_8FunctionENS9_14default_deleteISD_EEEEE4typeEOSB_ENKUlbRKNSD_13InvokeContextEE_clEbSM_
string_functions.cc:_ZZN3cel20UnaryFunctionAdapterIlRKNS_11StringValueEE12WrapFunctionIRZNS_12_GLOBAL__N_121RegisterSizeFunctionsERNS_16FunctionRegistryEE3$_0EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S3_EENSB_10unique_ptrINS_8FunctionENSB_14default_deleteISF_EEEEE4typeEOSD_ENKUlS3_RKNSF_13InvokeContextEE_clES3_SO_
Line
Count
Source
312
537
            U arg1, const Function::InvokeContext& context) -> T {
313
537
          return function(arg1);
314
537
        });
string_functions.cc:_ZZN3cel20UnaryFunctionAdapterIlRKNS_10BytesValueEE12WrapFunctionIRZNS_12_GLOBAL__N_121RegisterSizeFunctionsERNS_16FunctionRegistryEE3$_1EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S3_EENSB_10unique_ptrINS_8FunctionENSB_14default_deleteISF_EEEEE4typeEOSD_ENKUlS3_RKNSF_13InvokeContextEE_clES3_SO_
Line
Count
Source
312
700
            U arg1, const Function::InvokeContext& context) -> T {
313
700
          return function(arg1);
314
700
        });
Unexecuted instantiation: time_functions.cc:_ZZN3cel20UnaryFunctionAdapterIlN4absl12lts_202605268DurationEE12WrapFunctionIZNS_12_GLOBAL__N_125RegisterDurationFunctionsERNS_16FunctionRegistryEE3$_0EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S3_EENSA_10unique_ptrINS_8FunctionENSA_14default_deleteISE_EEEEE4typeEOSC_ENKUlS3_RKNSE_13InvokeContextEE_clES3_SN_
Unexecuted instantiation: time_functions.cc:_ZZN3cel20UnaryFunctionAdapterIlN4absl12lts_202605268DurationEE12WrapFunctionIZNS_12_GLOBAL__N_125RegisterDurationFunctionsERNS_16FunctionRegistryEE3$_1EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S3_EENSA_10unique_ptrINS_8FunctionENSA_14default_deleteISE_EEEEE4typeEOSC_ENKUlS3_RKNSE_13InvokeContextEE_clES3_SN_
Unexecuted instantiation: time_functions.cc:_ZZN3cel20UnaryFunctionAdapterIlN4absl12lts_202605268DurationEE12WrapFunctionIZNS_12_GLOBAL__N_125RegisterDurationFunctionsERNS_16FunctionRegistryEE3$_2EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S3_EENSA_10unique_ptrINS_8FunctionENSA_14default_deleteISE_EEEEE4typeEOSC_ENKUlS3_RKNSE_13InvokeContextEE_clES3_SN_
Unexecuted instantiation: time_functions.cc:_ZZN3cel20UnaryFunctionAdapterIlN4absl12lts_202605268DurationEE12WrapFunctionIZNS_12_GLOBAL__N_125RegisterDurationFunctionsERNS_16FunctionRegistryEE3$_3EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S3_EENSA_10unique_ptrINS_8FunctionENSA_14default_deleteISE_EEEEE4typeEOSC_ENKUlS3_RKNSE_13InvokeContextEE_clES3_SN_
type_conversion_functions.cc:_ZZN3cel20UnaryFunctionAdapterIbbE12WrapFunctionIZNS_12_GLOBAL__N_131RegisterBoolConversionFunctionsERNS_16FunctionRegistryERKNS_14RuntimeOptionsEE3$_0EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_bEENSA_10unique_ptrINS_8FunctionENSA_14default_deleteISE_EEEEE4typeEOSC_ENKUlbRKNSE_13InvokeContextEE_clEbSN_
Line
Count
Source
312
46
            U arg1, const Function::InvokeContext& context) -> T {
313
46
          return function(arg1);
314
46
        });
type_conversion_functions.cc:_ZZN3cel20UnaryFunctionAdapterINS_10BytesValueES1_E12WrapFunctionIZNS_12_GLOBAL__N_132RegisterBytesConversionFunctionsERNS_16FunctionRegistryERKNS_14RuntimeOptionsEE3$_0EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S1_EENSB_10unique_ptrINS_8FunctionENSB_14default_deleteISF_EEEEE4typeEOSD_ENKUlS1_RKNSF_13InvokeContextEE_clES1_SO_
Line
Count
Source
312
539
            U arg1, const Function::InvokeContext& context) -> T {
313
539
          return function(arg1);
314
539
        });
type_conversion_functions.cc:_ZZN3cel20UnaryFunctionAdapterIN4absl12lts_202605268StatusOrINS_10BytesValueEEERKNS_11StringValueEE12WrapFunctionIZNS_12_GLOBAL__N_132RegisterBytesConversionFunctionsERNS_16FunctionRegistryERKNS_14RuntimeOptionsEE3$_1EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S8_EENSI_10unique_ptrINS_8FunctionENSI_14default_deleteISM_EEEEE4typeEOSK_ENKUlS8_RKNSM_13InvokeContextEE_clES8_SV_
Line
Count
Source
312
348
            U arg1, const Function::InvokeContext& context) -> T {
313
348
          return function(arg1);
314
348
        });
type_conversion_functions.cc:_ZZN3cel20UnaryFunctionAdapterIddE12WrapFunctionIZNS_12_GLOBAL__N_133RegisterDoubleConversionFunctionsERNS_16FunctionRegistryERKNS_14RuntimeOptionsEE3$_0EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_dEENSA_10unique_ptrINS_8FunctionENSA_14default_deleteISE_EEEEE4typeEOSC_ENKUldRKNSE_13InvokeContextEE_clEdSN_
Line
Count
Source
312
98
            U arg1, const Function::InvokeContext& context) -> T {
313
98
          return function(arg1);
314
98
        });
type_conversion_functions.cc:_ZZN3cel20UnaryFunctionAdapterIdlE12WrapFunctionIZNS_12_GLOBAL__N_133RegisterDoubleConversionFunctionsERNS_16FunctionRegistryERKNS_14RuntimeOptionsEE3$_1EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_lEENSA_10unique_ptrINS_8FunctionENSA_14default_deleteISE_EEEEE4typeEOSC_ENKUllRKNSE_13InvokeContextEE_clElSN_
Line
Count
Source
312
78
            U arg1, const Function::InvokeContext& context) -> T {
313
78
          return function(arg1);
314
78
        });
type_conversion_functions.cc:_ZZN3cel20UnaryFunctionAdapterIdmE12WrapFunctionIZNS_12_GLOBAL__N_133RegisterDoubleConversionFunctionsERNS_16FunctionRegistryERKNS_14RuntimeOptionsEE3$_3EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_mEENSA_10unique_ptrINS_8FunctionENSA_14default_deleteISE_EEEEE4typeEOSC_ENKUlmRKNSE_13InvokeContextEE_clEmSN_
Line
Count
Source
312
78
            U arg1, const Function::InvokeContext& context) -> T {
313
78
          return function(arg1);
314
78
        });
type_conversion_functions.cc:_ZZN3cel20UnaryFunctionAdapterIlbE12WrapFunctionIZNS_12_GLOBAL__N_130RegisterIntConversionFunctionsERNS_16FunctionRegistryERKNS_14RuntimeOptionsEE3$_0EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_bEENSA_10unique_ptrINS_8FunctionENSA_14default_deleteISE_EEEEE4typeEOSC_ENKUlbRKNSE_13InvokeContextEE_clEbSN_
Line
Count
Source
312
237
            U arg1, const Function::InvokeContext& context) -> T {
313
237
          return function(arg1);
314
237
        });
type_conversion_functions.cc:_ZZN3cel20UnaryFunctionAdapterIllE12WrapFunctionIZNS_12_GLOBAL__N_130RegisterIntConversionFunctionsERNS_16FunctionRegistryERKNS_14RuntimeOptionsEE3$_2EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_lEENSA_10unique_ptrINS_8FunctionENSA_14default_deleteISE_EEEEE4typeEOSC_ENKUllRKNSE_13InvokeContextEE_clElSN_
Line
Count
Source
312
102
            U arg1, const Function::InvokeContext& context) -> T {
313
102
          return function(arg1);
314
102
        });
Unexecuted instantiation: type_conversion_functions.cc:_ZZN3cel20UnaryFunctionAdapterIlN4absl12lts_202605264TimeEE12WrapFunctionIZNS_12_GLOBAL__N_130RegisterIntConversionFunctionsERNS_16FunctionRegistryERKNS_14RuntimeOptionsEE3$_4EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S3_EENSD_10unique_ptrINS_8FunctionENSD_14default_deleteISH_EEEEE4typeEOSF_ENKUlS3_RKNSH_13InvokeContextEE_clES3_SQ_
type_conversion_functions.cc:_ZZN3cel20UnaryFunctionAdapterINS_11StringValueEbE12WrapFunctionIZNS_12_GLOBAL__N_133RegisterStringConversionFunctionsERNS_16FunctionRegistryERKNS_14RuntimeOptionsEE3$_1EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_bEENSB_10unique_ptrINS_8FunctionENSB_14default_deleteISF_EEEEE4typeEOSD_ENKUlbRKNSF_13InvokeContextEE_clEbSO_
Line
Count
Source
312
670
            U arg1, const Function::InvokeContext& context) -> T {
313
670
          return function(arg1);
314
670
        });
type_conversion_functions.cc:_ZZN3cel20UnaryFunctionAdapterINS_11StringValueES1_E12WrapFunctionIZNS_12_GLOBAL__N_133RegisterStringConversionFunctionsERNS_16FunctionRegistryERKNS_14RuntimeOptionsEE3$_3EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S1_EENSB_10unique_ptrINS_8FunctionENSB_14default_deleteISF_EEEEE4typeEOSD_ENKUlS1_RKNSF_13InvokeContextEE_clES1_SO_
Line
Count
Source
312
250
            U arg1, const Function::InvokeContext& context) -> T {
313
250
          return function(arg1);
314
250
        });
type_conversion_functions.cc:_ZZN3cel20UnaryFunctionAdapterImmE12WrapFunctionIZNS_12_GLOBAL__N_131RegisterUintConversionFunctionsERNS_16FunctionRegistryERKNS_14RuntimeOptionsEE3$_3EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_mEENSA_10unique_ptrINS_8FunctionENSA_14default_deleteISE_EEEEE4typeEOSC_ENKUlmRKNSE_13InvokeContextEE_clEmSN_
Line
Count
Source
312
204
            U arg1, const Function::InvokeContext& context) -> T {
313
204
          return function(arg1);
314
204
        });
type_conversion_functions.cc:_ZZN3cel20UnaryFunctionAdapterINS_5ValueEN4absl12lts_202605264TimeEE12WrapFunctionIZNS_12_GLOBAL__N_131RegisterTimeConversionFunctionsERNS_16FunctionRegistryERKNS_14RuntimeOptionsEE3$_1EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S4_EENSE_10unique_ptrINS_8FunctionENSE_14default_deleteISI_EEEEE4typeEOSG_ENKUlS4_RKNSI_13InvokeContextEE_clES4_SR_
Line
Count
Source
312
531
            U arg1, const Function::InvokeContext& context) -> T {
313
531
          return function(arg1);
314
531
        });
type_conversion_functions.cc:_ZZN3cel20UnaryFunctionAdapterINS_5ValueEN4absl12lts_202605268DurationEE12WrapFunctionIZNS_12_GLOBAL__N_131RegisterTimeConversionFunctionsERNS_16FunctionRegistryERKNS_14RuntimeOptionsEE3$_2EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S4_EENSE_10unique_ptrINS_8FunctionENSE_14default_deleteISI_EEEEE4typeEOSG_ENKUlS4_RKNSI_13InvokeContextEE_clES4_SR_
Line
Count
Source
312
559
            U arg1, const Function::InvokeContext& context) -> T {
313
559
          return function(arg1);
314
559
        });
type_conversion_functions.cc:_ZZN3cel20UnaryFunctionAdapterINS_5ValueERKS1_E12WrapFunctionIZNS_31RegisterTypeConversionFunctionsERNS_16FunctionRegistryERKNS_14RuntimeOptionsEE3$_0EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S3_EENSC_10unique_ptrINS_8FunctionENSC_14default_deleteISG_EEEEE4typeEOSE_ENKUlS3_RKNSG_13InvokeContextEE_clES3_SP_
Line
Count
Source
312
223
            U arg1, const Function::InvokeContext& context) -> T {
313
223
          return function(arg1);
314
223
        });
type_conversion_functions.cc:_ZZN3cel20UnaryFunctionAdapterINS_5ValueERKS1_E12WrapFunctionIZNS_31RegisterTypeConversionFunctionsERNS_16FunctionRegistryERKNS_14RuntimeOptionsEE3$_1EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S3_EENSC_10unique_ptrINS_8FunctionENSC_14default_deleteISG_EEEEE4typeEOSE_ENKUlS3_RKNSG_13InvokeContextEE_clES3_SP_
Line
Count
Source
312
2.13k
            U arg1, const Function::InvokeContext& context) -> T {
313
2.13k
          return function(arg1);
314
2.13k
        });
315
676k
  }
arithmetic_functions.cc:_ZN3cel20UnaryFunctionAdapterIddE12WrapFunctionIZNS_27RegisterArithmeticFunctionsERNS_16FunctionRegistryERKNS_14RuntimeOptionsEE3$_1EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_dEENS9_10unique_ptrINS_8FunctionENS9_14default_deleteISD_EEEEE4typeEOSB_
Line
Count
Source
309
22.5k
  WrapFunction(F&& function) {
310
22.5k
    return WrapFunction(
311
22.5k
        [function = std::forward<F>(function)](
312
22.5k
            U arg1, const Function::InvokeContext& context) -> T {
313
22.5k
          return function(arg1);
314
22.5k
        });
315
22.5k
  }
_ZN3cel20UnaryFunctionAdapterIN4absl12lts_202605268StatusOrIlEERKNS_9ListValueEE12WrapFunctionIRFS4_S7_EEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S7_EENSC_10unique_ptrINS_8FunctionENSC_14default_deleteISG_EEEEE4typeEOSE_
Line
Count
Source
309
45.1k
  WrapFunction(F&& function) {
310
45.1k
    return WrapFunction(
311
45.1k
        [function = std::forward<F>(function)](
312
45.1k
            U arg1, const Function::InvokeContext& context) -> T {
313
45.1k
          return function(arg1);
314
45.1k
        });
315
45.1k
  }
_ZN3cel20UnaryFunctionAdapterIN4absl12lts_202605268StatusOrIlEERKNS_8MapValueEE12WrapFunctionIRFS4_S7_EEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S7_EENSC_10unique_ptrINS_8FunctionENSC_14default_deleteISG_EEEEE4typeEOSE_
Line
Count
Source
309
45.1k
  WrapFunction(F&& function) {
310
45.1k
    return WrapFunction(
311
45.1k
        [function = std::forward<F>(function)](
312
45.1k
            U arg1, const Function::InvokeContext& context) -> T {
313
45.1k
          return function(arg1);
314
45.1k
        });
315
45.1k
  }
logical_functions.cc:_ZN3cel20UnaryFunctionAdapterIbbE12WrapFunctionIZNS_24RegisterLogicalFunctionsERNS_16FunctionRegistryERKNS_14RuntimeOptionsEE3$_0EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_bEENS9_10unique_ptrINS_8FunctionENS9_14default_deleteISD_EEEEE4typeEOSB_
Line
Count
Source
309
22.5k
  WrapFunction(F&& function) {
310
22.5k
    return WrapFunction(
311
22.5k
        [function = std::forward<F>(function)](
312
22.5k
            U arg1, const Function::InvokeContext& context) -> T {
313
22.5k
          return function(arg1);
314
22.5k
        });
315
22.5k
  }
string_functions.cc:_ZN3cel20UnaryFunctionAdapterIlRKNS_11StringValueEE12WrapFunctionIRZNS_12_GLOBAL__N_121RegisterSizeFunctionsERNS_16FunctionRegistryEE3$_0EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S3_EENSB_10unique_ptrINS_8FunctionENSB_14default_deleteISF_EEEEE4typeEOSD_
Line
Count
Source
309
45.1k
  WrapFunction(F&& function) {
310
45.1k
    return WrapFunction(
311
45.1k
        [function = std::forward<F>(function)](
312
45.1k
            U arg1, const Function::InvokeContext& context) -> T {
313
45.1k
          return function(arg1);
314
45.1k
        });
315
45.1k
  }
string_functions.cc:_ZN3cel20UnaryFunctionAdapterIlRKNS_10BytesValueEE12WrapFunctionIRZNS_12_GLOBAL__N_121RegisterSizeFunctionsERNS_16FunctionRegistryEE3$_1EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S3_EENSB_10unique_ptrINS_8FunctionENSB_14default_deleteISF_EEEEE4typeEOSD_
Line
Count
Source
309
45.1k
  WrapFunction(F&& function) {
310
45.1k
    return WrapFunction(
311
45.1k
        [function = std::forward<F>(function)](
312
45.1k
            U arg1, const Function::InvokeContext& context) -> T {
313
45.1k
          return function(arg1);
314
45.1k
        });
315
45.1k
  }
time_functions.cc:_ZN3cel20UnaryFunctionAdapterIlN4absl12lts_202605268DurationEE12WrapFunctionIZNS_12_GLOBAL__N_125RegisterDurationFunctionsERNS_16FunctionRegistryEE3$_0EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S3_EENSA_10unique_ptrINS_8FunctionENSA_14default_deleteISE_EEEEE4typeEOSC_
Line
Count
Source
309
22.5k
  WrapFunction(F&& function) {
310
22.5k
    return WrapFunction(
311
22.5k
        [function = std::forward<F>(function)](
312
22.5k
            U arg1, const Function::InvokeContext& context) -> T {
313
22.5k
          return function(arg1);
314
22.5k
        });
315
22.5k
  }
time_functions.cc:_ZN3cel20UnaryFunctionAdapterIlN4absl12lts_202605268DurationEE12WrapFunctionIZNS_12_GLOBAL__N_125RegisterDurationFunctionsERNS_16FunctionRegistryEE3$_1EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S3_EENSA_10unique_ptrINS_8FunctionENSA_14default_deleteISE_EEEEE4typeEOSC_
Line
Count
Source
309
22.5k
  WrapFunction(F&& function) {
310
22.5k
    return WrapFunction(
311
22.5k
        [function = std::forward<F>(function)](
312
22.5k
            U arg1, const Function::InvokeContext& context) -> T {
313
22.5k
          return function(arg1);
314
22.5k
        });
315
22.5k
  }
time_functions.cc:_ZN3cel20UnaryFunctionAdapterIlN4absl12lts_202605268DurationEE12WrapFunctionIZNS_12_GLOBAL__N_125RegisterDurationFunctionsERNS_16FunctionRegistryEE3$_2EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S3_EENSA_10unique_ptrINS_8FunctionENSA_14default_deleteISE_EEEEE4typeEOSC_
Line
Count
Source
309
22.5k
  WrapFunction(F&& function) {
310
22.5k
    return WrapFunction(
311
22.5k
        [function = std::forward<F>(function)](
312
22.5k
            U arg1, const Function::InvokeContext& context) -> T {
313
22.5k
          return function(arg1);
314
22.5k
        });
315
22.5k
  }
time_functions.cc:_ZN3cel20UnaryFunctionAdapterIlN4absl12lts_202605268DurationEE12WrapFunctionIZNS_12_GLOBAL__N_125RegisterDurationFunctionsERNS_16FunctionRegistryEE3$_3EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S3_EENSA_10unique_ptrINS_8FunctionENSA_14default_deleteISE_EEEEE4typeEOSC_
Line
Count
Source
309
22.5k
  WrapFunction(F&& function) {
310
22.5k
    return WrapFunction(
311
22.5k
        [function = std::forward<F>(function)](
312
22.5k
            U arg1, const Function::InvokeContext& context) -> T {
313
22.5k
          return function(arg1);
314
22.5k
        });
315
22.5k
  }
type_conversion_functions.cc:_ZN3cel20UnaryFunctionAdapterIbbE12WrapFunctionIZNS_12_GLOBAL__N_131RegisterBoolConversionFunctionsERNS_16FunctionRegistryERKNS_14RuntimeOptionsEE3$_0EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_bEENSA_10unique_ptrINS_8FunctionENSA_14default_deleteISE_EEEEE4typeEOSC_
Line
Count
Source
309
22.5k
  WrapFunction(F&& function) {
310
22.5k
    return WrapFunction(
311
22.5k
        [function = std::forward<F>(function)](
312
22.5k
            U arg1, const Function::InvokeContext& context) -> T {
313
22.5k
          return function(arg1);
314
22.5k
        });
315
22.5k
  }
type_conversion_functions.cc:_ZN3cel20UnaryFunctionAdapterINS_10BytesValueES1_E12WrapFunctionIZNS_12_GLOBAL__N_132RegisterBytesConversionFunctionsERNS_16FunctionRegistryERKNS_14RuntimeOptionsEE3$_0EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S1_EENSB_10unique_ptrINS_8FunctionENSB_14default_deleteISF_EEEEE4typeEOSD_
Line
Count
Source
309
22.5k
  WrapFunction(F&& function) {
310
22.5k
    return WrapFunction(
311
22.5k
        [function = std::forward<F>(function)](
312
22.5k
            U arg1, const Function::InvokeContext& context) -> T {
313
22.5k
          return function(arg1);
314
22.5k
        });
315
22.5k
  }
type_conversion_functions.cc:_ZN3cel20UnaryFunctionAdapterIN4absl12lts_202605268StatusOrINS_10BytesValueEEERKNS_11StringValueEE12WrapFunctionIZNS_12_GLOBAL__N_132RegisterBytesConversionFunctionsERNS_16FunctionRegistryERKNS_14RuntimeOptionsEE3$_1EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S8_EENSI_10unique_ptrINS_8FunctionENSI_14default_deleteISM_EEEEE4typeEOSK_
Line
Count
Source
309
22.5k
  WrapFunction(F&& function) {
310
22.5k
    return WrapFunction(
311
22.5k
        [function = std::forward<F>(function)](
312
22.5k
            U arg1, const Function::InvokeContext& context) -> T {
313
22.5k
          return function(arg1);
314
22.5k
        });
315
22.5k
  }
type_conversion_functions.cc:_ZN3cel20UnaryFunctionAdapterIddE12WrapFunctionIZNS_12_GLOBAL__N_133RegisterDoubleConversionFunctionsERNS_16FunctionRegistryERKNS_14RuntimeOptionsEE3$_0EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_dEENSA_10unique_ptrINS_8FunctionENSA_14default_deleteISE_EEEEE4typeEOSC_
Line
Count
Source
309
22.5k
  WrapFunction(F&& function) {
310
22.5k
    return WrapFunction(
311
22.5k
        [function = std::forward<F>(function)](
312
22.5k
            U arg1, const Function::InvokeContext& context) -> T {
313
22.5k
          return function(arg1);
314
22.5k
        });
315
22.5k
  }
type_conversion_functions.cc:_ZN3cel20UnaryFunctionAdapterIdlE12WrapFunctionIZNS_12_GLOBAL__N_133RegisterDoubleConversionFunctionsERNS_16FunctionRegistryERKNS_14RuntimeOptionsEE3$_1EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_lEENSA_10unique_ptrINS_8FunctionENSA_14default_deleteISE_EEEEE4typeEOSC_
Line
Count
Source
309
22.5k
  WrapFunction(F&& function) {
310
22.5k
    return WrapFunction(
311
22.5k
        [function = std::forward<F>(function)](
312
22.5k
            U arg1, const Function::InvokeContext& context) -> T {
313
22.5k
          return function(arg1);
314
22.5k
        });
315
22.5k
  }
type_conversion_functions.cc:_ZN3cel20UnaryFunctionAdapterIdmE12WrapFunctionIZNS_12_GLOBAL__N_133RegisterDoubleConversionFunctionsERNS_16FunctionRegistryERKNS_14RuntimeOptionsEE3$_3EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_mEENSA_10unique_ptrINS_8FunctionENSA_14default_deleteISE_EEEEE4typeEOSC_
Line
Count
Source
309
22.5k
  WrapFunction(F&& function) {
310
22.5k
    return WrapFunction(
311
22.5k
        [function = std::forward<F>(function)](
312
22.5k
            U arg1, const Function::InvokeContext& context) -> T {
313
22.5k
          return function(arg1);
314
22.5k
        });
315
22.5k
  }
type_conversion_functions.cc:_ZN3cel20UnaryFunctionAdapterIlbE12WrapFunctionIZNS_12_GLOBAL__N_130RegisterIntConversionFunctionsERNS_16FunctionRegistryERKNS_14RuntimeOptionsEE3$_0EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_bEENSA_10unique_ptrINS_8FunctionENSA_14default_deleteISE_EEEEE4typeEOSC_
Line
Count
Source
309
22.5k
  WrapFunction(F&& function) {
310
22.5k
    return WrapFunction(
311
22.5k
        [function = std::forward<F>(function)](
312
22.5k
            U arg1, const Function::InvokeContext& context) -> T {
313
22.5k
          return function(arg1);
314
22.5k
        });
315
22.5k
  }
type_conversion_functions.cc:_ZN3cel20UnaryFunctionAdapterIllE12WrapFunctionIZNS_12_GLOBAL__N_130RegisterIntConversionFunctionsERNS_16FunctionRegistryERKNS_14RuntimeOptionsEE3$_2EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_lEENSA_10unique_ptrINS_8FunctionENSA_14default_deleteISE_EEEEE4typeEOSC_
Line
Count
Source
309
22.5k
  WrapFunction(F&& function) {
310
22.5k
    return WrapFunction(
311
22.5k
        [function = std::forward<F>(function)](
312
22.5k
            U arg1, const Function::InvokeContext& context) -> T {
313
22.5k
          return function(arg1);
314
22.5k
        });
315
22.5k
  }
type_conversion_functions.cc:_ZN3cel20UnaryFunctionAdapterIlN4absl12lts_202605264TimeEE12WrapFunctionIZNS_12_GLOBAL__N_130RegisterIntConversionFunctionsERNS_16FunctionRegistryERKNS_14RuntimeOptionsEE3$_4EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S3_EENSD_10unique_ptrINS_8FunctionENSD_14default_deleteISH_EEEEE4typeEOSF_
Line
Count
Source
309
22.5k
  WrapFunction(F&& function) {
310
22.5k
    return WrapFunction(
311
22.5k
        [function = std::forward<F>(function)](
312
22.5k
            U arg1, const Function::InvokeContext& context) -> T {
313
22.5k
          return function(arg1);
314
22.5k
        });
315
22.5k
  }
type_conversion_functions.cc:_ZN3cel20UnaryFunctionAdapterINS_11StringValueEbE12WrapFunctionIZNS_12_GLOBAL__N_133RegisterStringConversionFunctionsERNS_16FunctionRegistryERKNS_14RuntimeOptionsEE3$_1EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_bEENSB_10unique_ptrINS_8FunctionENSB_14default_deleteISF_EEEEE4typeEOSD_
Line
Count
Source
309
22.5k
  WrapFunction(F&& function) {
310
22.5k
    return WrapFunction(
311
22.5k
        [function = std::forward<F>(function)](
312
22.5k
            U arg1, const Function::InvokeContext& context) -> T {
313
22.5k
          return function(arg1);
314
22.5k
        });
315
22.5k
  }
type_conversion_functions.cc:_ZN3cel20UnaryFunctionAdapterINS_11StringValueES1_E12WrapFunctionIZNS_12_GLOBAL__N_133RegisterStringConversionFunctionsERNS_16FunctionRegistryERKNS_14RuntimeOptionsEE3$_3EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S1_EENSB_10unique_ptrINS_8FunctionENSB_14default_deleteISF_EEEEE4typeEOSD_
Line
Count
Source
309
22.5k
  WrapFunction(F&& function) {
310
22.5k
    return WrapFunction(
311
22.5k
        [function = std::forward<F>(function)](
312
22.5k
            U arg1, const Function::InvokeContext& context) -> T {
313
22.5k
          return function(arg1);
314
22.5k
        });
315
22.5k
  }
type_conversion_functions.cc:_ZN3cel20UnaryFunctionAdapterImmE12WrapFunctionIZNS_12_GLOBAL__N_131RegisterUintConversionFunctionsERNS_16FunctionRegistryERKNS_14RuntimeOptionsEE3$_3EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_mEENSA_10unique_ptrINS_8FunctionENSA_14default_deleteISE_EEEEE4typeEOSC_
Line
Count
Source
309
22.5k
  WrapFunction(F&& function) {
310
22.5k
    return WrapFunction(
311
22.5k
        [function = std::forward<F>(function)](
312
22.5k
            U arg1, const Function::InvokeContext& context) -> T {
313
22.5k
          return function(arg1);
314
22.5k
        });
315
22.5k
  }
type_conversion_functions.cc:_ZN3cel20UnaryFunctionAdapterINS_5ValueEN4absl12lts_202605264TimeEE12WrapFunctionIZNS_12_GLOBAL__N_131RegisterTimeConversionFunctionsERNS_16FunctionRegistryERKNS_14RuntimeOptionsEE3$_1EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S4_EENSE_10unique_ptrINS_8FunctionENSE_14default_deleteISI_EEEEE4typeEOSG_
Line
Count
Source
309
22.5k
  WrapFunction(F&& function) {
310
22.5k
    return WrapFunction(
311
22.5k
        [function = std::forward<F>(function)](
312
22.5k
            U arg1, const Function::InvokeContext& context) -> T {
313
22.5k
          return function(arg1);
314
22.5k
        });
315
22.5k
  }
type_conversion_functions.cc:_ZN3cel20UnaryFunctionAdapterINS_5ValueEN4absl12lts_202605268DurationEE12WrapFunctionIZNS_12_GLOBAL__N_131RegisterTimeConversionFunctionsERNS_16FunctionRegistryERKNS_14RuntimeOptionsEE3$_2EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S4_EENSE_10unique_ptrINS_8FunctionENSE_14default_deleteISI_EEEEE4typeEOSG_
Line
Count
Source
309
22.5k
  WrapFunction(F&& function) {
310
22.5k
    return WrapFunction(
311
22.5k
        [function = std::forward<F>(function)](
312
22.5k
            U arg1, const Function::InvokeContext& context) -> T {
313
22.5k
          return function(arg1);
314
22.5k
        });
315
22.5k
  }
type_conversion_functions.cc:_ZN3cel20UnaryFunctionAdapterINS_5ValueERKS1_E12WrapFunctionIZNS_31RegisterTypeConversionFunctionsERNS_16FunctionRegistryERKNS_14RuntimeOptionsEE3$_0EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S3_EENSC_10unique_ptrINS_8FunctionENSC_14default_deleteISG_EEEEE4typeEOSE_
Line
Count
Source
309
22.5k
  WrapFunction(F&& function) {
310
22.5k
    return WrapFunction(
311
22.5k
        [function = std::forward<F>(function)](
312
22.5k
            U arg1, const Function::InvokeContext& context) -> T {
313
22.5k
          return function(arg1);
314
22.5k
        });
315
22.5k
  }
type_conversion_functions.cc:_ZN3cel20UnaryFunctionAdapterINS_5ValueERKS1_E12WrapFunctionIZNS_31RegisterTypeConversionFunctionsERNS_16FunctionRegistryERKNS_14RuntimeOptionsEE3$_1EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S3_EENSC_10unique_ptrINS_8FunctionENSC_14default_deleteISG_EEEEE4typeEOSE_
Line
Count
Source
309
22.5k
  WrapFunction(F&& function) {
310
22.5k
    return WrapFunction(
311
22.5k
        [function = std::forward<F>(function)](
312
22.5k
            U arg1, const Function::InvokeContext& context) -> T {
313
22.5k
          return function(arg1);
314
22.5k
        });
315
22.5k
  }
316
317
  static FunctionDescriptor CreateDescriptor(absl::string_view name,
318
                                             bool receiver_style,
319
45.1k
                                             bool is_strict) {
320
45.1k
    return CreateDescriptor(
321
45.1k
        name, receiver_style,
322
45.1k
        FunctionDescriptorOptions{is_strict, /*is_contextual=*/false});
323
45.1k
  }
324
325
  static FunctionDescriptor CreateDescriptor(
326
      absl::string_view name, bool receiver_style,
327
1.35M
      FunctionDescriptorOptions options = {}) {
328
1.35M
    return FunctionDescriptor(name, receiver_style,
329
1.35M
                              {runtime_internal::AdaptedKind<U>()}, options);
330
1.35M
  }
cel::UnaryFunctionAdapter<cel::Value, long>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
327
67.6k
      FunctionDescriptorOptions options = {}) {
328
67.6k
    return FunctionDescriptor(name, receiver_style,
329
67.6k
                              {runtime_internal::AdaptedKind<U>()}, options);
330
67.6k
  }
cel::UnaryFunctionAdapter<double, double>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
327
45.1k
      FunctionDescriptorOptions options = {}) {
328
45.1k
    return FunctionDescriptor(name, receiver_style,
329
45.1k
                              {runtime_internal::AdaptedKind<U>()}, options);
330
45.1k
  }
cel::UnaryFunctionAdapter<absl::lts_20260526::StatusOr<long>, cel::ListValue const&>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
327
45.1k
      FunctionDescriptorOptions options = {}) {
328
45.1k
    return FunctionDescriptor(name, receiver_style,
329
45.1k
                              {runtime_internal::AdaptedKind<U>()}, options);
330
45.1k
  }
cel::UnaryFunctionAdapter<absl::lts_20260526::StatusOr<long>, cel::MapValue const&>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
327
45.1k
      FunctionDescriptorOptions options = {}) {
328
45.1k
    return FunctionDescriptor(name, receiver_style,
329
45.1k
                              {runtime_internal::AdaptedKind<U>()}, options);
330
45.1k
  }
cel::UnaryFunctionAdapter<bool, bool>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
327
45.1k
      FunctionDescriptorOptions options = {}) {
328
45.1k
    return FunctionDescriptor(name, receiver_style,
329
45.1k
                              {runtime_internal::AdaptedKind<U>()}, options);
330
45.1k
  }
cel::UnaryFunctionAdapter<cel::Value, cel::Value>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
327
45.1k
      FunctionDescriptorOptions options = {}) {
328
45.1k
    return FunctionDescriptor(name, receiver_style,
329
45.1k
                              {runtime_internal::AdaptedKind<U>()}, options);
330
45.1k
  }
cel::UnaryFunctionAdapter<long, cel::StringValue const&>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
327
45.1k
      FunctionDescriptorOptions options = {}) {
328
45.1k
    return FunctionDescriptor(name, receiver_style,
329
45.1k
                              {runtime_internal::AdaptedKind<U>()}, options);
330
45.1k
  }
cel::UnaryFunctionAdapter<long, cel::BytesValue const&>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
327
45.1k
      FunctionDescriptorOptions options = {}) {
328
45.1k
    return FunctionDescriptor(name, receiver_style,
329
45.1k
                              {runtime_internal::AdaptedKind<U>()}, options);
330
45.1k
  }
cel::UnaryFunctionAdapter<cel::Value, absl::lts_20260526::Time>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
327
270k
      FunctionDescriptorOptions options = {}) {
328
270k
    return FunctionDescriptor(name, receiver_style,
329
270k
                              {runtime_internal::AdaptedKind<U>()}, options);
330
270k
  }
cel::UnaryFunctionAdapter<long, absl::lts_20260526::Duration>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
327
90.2k
      FunctionDescriptorOptions options = {}) {
328
90.2k
    return FunctionDescriptor(name, receiver_style,
329
90.2k
                              {runtime_internal::AdaptedKind<U>()}, options);
330
90.2k
  }
cel::UnaryFunctionAdapter<cel::Value, cel::StringValue>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
327
22.5k
      FunctionDescriptorOptions options = {}) {
328
22.5k
    return FunctionDescriptor(name, receiver_style,
329
22.5k
                              {runtime_internal::AdaptedKind<U>()}, options);
330
22.5k
  }
cel::UnaryFunctionAdapter<cel::BytesValue, cel::BytesValue>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
327
22.5k
      FunctionDescriptorOptions options = {}) {
328
22.5k
    return FunctionDescriptor(name, receiver_style,
329
22.5k
                              {runtime_internal::AdaptedKind<U>()}, options);
330
22.5k
  }
cel::UnaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::BytesValue>, cel::StringValue const&>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
327
22.5k
      FunctionDescriptorOptions options = {}) {
328
22.5k
    return FunctionDescriptor(name, receiver_style,
329
22.5k
                              {runtime_internal::AdaptedKind<U>()}, options);
330
22.5k
  }
cel::UnaryFunctionAdapter<double, long>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
327
22.5k
      FunctionDescriptorOptions options = {}) {
328
22.5k
    return FunctionDescriptor(name, receiver_style,
329
22.5k
                              {runtime_internal::AdaptedKind<U>()}, options);
330
22.5k
  }
cel::UnaryFunctionAdapter<cel::Value, cel::StringValue const&>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
327
112k
      FunctionDescriptorOptions options = {}) {
328
112k
    return FunctionDescriptor(name, receiver_style,
329
112k
                              {runtime_internal::AdaptedKind<U>()}, options);
330
112k
  }
cel::UnaryFunctionAdapter<double, unsigned long>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
327
22.5k
      FunctionDescriptorOptions options = {}) {
328
22.5k
    return FunctionDescriptor(name, receiver_style,
329
22.5k
                              {runtime_internal::AdaptedKind<U>()}, options);
330
22.5k
  }
cel::UnaryFunctionAdapter<long, bool>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
327
22.5k
      FunctionDescriptorOptions options = {}) {
328
22.5k
    return FunctionDescriptor(name, receiver_style,
329
22.5k
                              {runtime_internal::AdaptedKind<U>()}, options);
330
22.5k
  }
cel::UnaryFunctionAdapter<cel::Value, double>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
327
67.6k
      FunctionDescriptorOptions options = {}) {
328
67.6k
    return FunctionDescriptor(name, receiver_style,
329
67.6k
                              {runtime_internal::AdaptedKind<U>()}, options);
330
67.6k
  }
cel::UnaryFunctionAdapter<long, long>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
327
22.5k
      FunctionDescriptorOptions options = {}) {
328
22.5k
    return FunctionDescriptor(name, receiver_style,
329
22.5k
                              {runtime_internal::AdaptedKind<U>()}, options);
330
22.5k
  }
cel::UnaryFunctionAdapter<long, absl::lts_20260526::Time>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
327
22.5k
      FunctionDescriptorOptions options = {}) {
328
22.5k
    return FunctionDescriptor(name, receiver_style,
329
22.5k
                              {runtime_internal::AdaptedKind<U>()}, options);
330
22.5k
  }
cel::UnaryFunctionAdapter<cel::Value, unsigned long>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
327
22.5k
      FunctionDescriptorOptions options = {}) {
328
22.5k
    return FunctionDescriptor(name, receiver_style,
329
22.5k
                              {runtime_internal::AdaptedKind<U>()}, options);
330
22.5k
  }
cel::UnaryFunctionAdapter<cel::Value, cel::BytesValue const&>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
327
22.5k
      FunctionDescriptorOptions options = {}) {
328
22.5k
    return FunctionDescriptor(name, receiver_style,
329
22.5k
                              {runtime_internal::AdaptedKind<U>()}, options);
330
22.5k
  }
cel::UnaryFunctionAdapter<cel::StringValue, bool>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
327
22.5k
      FunctionDescriptorOptions options = {}) {
328
22.5k
    return FunctionDescriptor(name, receiver_style,
329
22.5k
                              {runtime_internal::AdaptedKind<U>()}, options);
330
22.5k
  }
cel::UnaryFunctionAdapter<cel::StringValue, long>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
327
22.5k
      FunctionDescriptorOptions options = {}) {
328
22.5k
    return FunctionDescriptor(name, receiver_style,
329
22.5k
                              {runtime_internal::AdaptedKind<U>()}, options);
330
22.5k
  }
cel::UnaryFunctionAdapter<cel::StringValue, cel::StringValue>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
327
22.5k
      FunctionDescriptorOptions options = {}) {
328
22.5k
    return FunctionDescriptor(name, receiver_style,
329
22.5k
                              {runtime_internal::AdaptedKind<U>()}, options);
330
22.5k
  }
cel::UnaryFunctionAdapter<cel::StringValue, unsigned long>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
327
22.5k
      FunctionDescriptorOptions options = {}) {
328
22.5k
    return FunctionDescriptor(name, receiver_style,
329
22.5k
                              {runtime_internal::AdaptedKind<U>()}, options);
330
22.5k
  }
cel::UnaryFunctionAdapter<cel::Value, absl::lts_20260526::Duration>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
327
45.1k
      FunctionDescriptorOptions options = {}) {
328
45.1k
    return FunctionDescriptor(name, receiver_style,
329
45.1k
                              {runtime_internal::AdaptedKind<U>()}, options);
330
45.1k
  }
cel::UnaryFunctionAdapter<unsigned long, unsigned long>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
327
22.5k
      FunctionDescriptorOptions options = {}) {
328
22.5k
    return FunctionDescriptor(name, receiver_style,
329
22.5k
                              {runtime_internal::AdaptedKind<U>()}, options);
330
22.5k
  }
cel::UnaryFunctionAdapter<cel::Value, cel::Value const&>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
327
45.1k
      FunctionDescriptorOptions options = {}) {
328
45.1k
    return FunctionDescriptor(name, receiver_style,
329
45.1k
                              {runtime_internal::AdaptedKind<U>()}, options);
330
45.1k
  }
331
332
 private:
333
  class UnaryFunctionImpl : public Function {
334
   public:
335
1.35M
    explicit UnaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::UnaryFunctionAdapter<cel::Value, long>::UnaryFunctionImpl::UnaryFunctionImpl(absl::lts_20260526::AnyInvocable<cel::Value (long, cel::Function::InvokeContext const&) const>)
Line
Count
Source
335
67.6k
    explicit UnaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::UnaryFunctionAdapter<double, double>::UnaryFunctionImpl::UnaryFunctionImpl(absl::lts_20260526::AnyInvocable<double (double, cel::Function::InvokeContext const&) const>)
Line
Count
Source
335
45.1k
    explicit UnaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::UnaryFunctionAdapter<absl::lts_20260526::StatusOr<long>, cel::ListValue const&>::UnaryFunctionImpl::UnaryFunctionImpl(absl::lts_20260526::AnyInvocable<absl::lts_20260526::StatusOr<long> (cel::ListValue const&, cel::Function::InvokeContext const&) const>)
Line
Count
Source
335
45.1k
    explicit UnaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::UnaryFunctionAdapter<absl::lts_20260526::StatusOr<long>, cel::MapValue const&>::UnaryFunctionImpl::UnaryFunctionImpl(absl::lts_20260526::AnyInvocable<absl::lts_20260526::StatusOr<long> (cel::MapValue const&, cel::Function::InvokeContext const&) const>)
Line
Count
Source
335
45.1k
    explicit UnaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::UnaryFunctionAdapter<bool, bool>::UnaryFunctionImpl::UnaryFunctionImpl(absl::lts_20260526::AnyInvocable<bool (bool, cel::Function::InvokeContext const&) const>)
Line
Count
Source
335
45.1k
    explicit UnaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::UnaryFunctionAdapter<cel::Value, cel::Value>::UnaryFunctionImpl::UnaryFunctionImpl(absl::lts_20260526::AnyInvocable<cel::Value (cel::Value, cel::Function::InvokeContext const&) const>)
Line
Count
Source
335
45.1k
    explicit UnaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::UnaryFunctionAdapter<long, cel::StringValue const&>::UnaryFunctionImpl::UnaryFunctionImpl(absl::lts_20260526::AnyInvocable<long (cel::StringValue const&, cel::Function::InvokeContext const&) const>)
Line
Count
Source
335
45.1k
    explicit UnaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::UnaryFunctionAdapter<long, cel::BytesValue const&>::UnaryFunctionImpl::UnaryFunctionImpl(absl::lts_20260526::AnyInvocable<long (cel::BytesValue const&, cel::Function::InvokeContext const&) const>)
Line
Count
Source
335
45.1k
    explicit UnaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::UnaryFunctionAdapter<cel::Value, absl::lts_20260526::Time>::UnaryFunctionImpl::UnaryFunctionImpl(absl::lts_20260526::AnyInvocable<cel::Value (absl::lts_20260526::Time, cel::Function::InvokeContext const&) const>)
Line
Count
Source
335
270k
    explicit UnaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::UnaryFunctionAdapter<long, absl::lts_20260526::Duration>::UnaryFunctionImpl::UnaryFunctionImpl(absl::lts_20260526::AnyInvocable<long (absl::lts_20260526::Duration, cel::Function::InvokeContext const&) const>)
Line
Count
Source
335
90.2k
    explicit UnaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::UnaryFunctionAdapter<cel::Value, cel::StringValue>::UnaryFunctionImpl::UnaryFunctionImpl(absl::lts_20260526::AnyInvocable<cel::Value (cel::StringValue, cel::Function::InvokeContext const&) const>)
Line
Count
Source
335
22.5k
    explicit UnaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::UnaryFunctionAdapter<cel::BytesValue, cel::BytesValue>::UnaryFunctionImpl::UnaryFunctionImpl(absl::lts_20260526::AnyInvocable<cel::BytesValue (cel::BytesValue, cel::Function::InvokeContext const&) const>)
Line
Count
Source
335
22.5k
    explicit UnaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::UnaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::BytesValue>, cel::StringValue const&>::UnaryFunctionImpl::UnaryFunctionImpl(absl::lts_20260526::AnyInvocable<absl::lts_20260526::StatusOr<cel::BytesValue> (cel::StringValue const&, cel::Function::InvokeContext const&) const>)
Line
Count
Source
335
22.5k
    explicit UnaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::UnaryFunctionAdapter<double, long>::UnaryFunctionImpl::UnaryFunctionImpl(absl::lts_20260526::AnyInvocable<double (long, cel::Function::InvokeContext const&) const>)
Line
Count
Source
335
22.5k
    explicit UnaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::UnaryFunctionAdapter<cel::Value, cel::StringValue const&>::UnaryFunctionImpl::UnaryFunctionImpl(absl::lts_20260526::AnyInvocable<cel::Value (cel::StringValue const&, cel::Function::InvokeContext const&) const>)
Line
Count
Source
335
112k
    explicit UnaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::UnaryFunctionAdapter<double, unsigned long>::UnaryFunctionImpl::UnaryFunctionImpl(absl::lts_20260526::AnyInvocable<double (unsigned long, cel::Function::InvokeContext const&) const>)
Line
Count
Source
335
22.5k
    explicit UnaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::UnaryFunctionAdapter<long, bool>::UnaryFunctionImpl::UnaryFunctionImpl(absl::lts_20260526::AnyInvocable<long (bool, cel::Function::InvokeContext const&) const>)
Line
Count
Source
335
22.5k
    explicit UnaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::UnaryFunctionAdapter<cel::Value, double>::UnaryFunctionImpl::UnaryFunctionImpl(absl::lts_20260526::AnyInvocable<cel::Value (double, cel::Function::InvokeContext const&) const>)
Line
Count
Source
335
67.6k
    explicit UnaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::UnaryFunctionAdapter<long, long>::UnaryFunctionImpl::UnaryFunctionImpl(absl::lts_20260526::AnyInvocable<long (long, cel::Function::InvokeContext const&) const>)
Line
Count
Source
335
22.5k
    explicit UnaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::UnaryFunctionAdapter<long, absl::lts_20260526::Time>::UnaryFunctionImpl::UnaryFunctionImpl(absl::lts_20260526::AnyInvocable<long (absl::lts_20260526::Time, cel::Function::InvokeContext const&) const>)
Line
Count
Source
335
22.5k
    explicit UnaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::UnaryFunctionAdapter<cel::Value, unsigned long>::UnaryFunctionImpl::UnaryFunctionImpl(absl::lts_20260526::AnyInvocable<cel::Value (unsigned long, cel::Function::InvokeContext const&) const>)
Line
Count
Source
335
22.5k
    explicit UnaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::UnaryFunctionAdapter<cel::Value, cel::BytesValue const&>::UnaryFunctionImpl::UnaryFunctionImpl(absl::lts_20260526::AnyInvocable<cel::Value (cel::BytesValue const&, cel::Function::InvokeContext const&) const>)
Line
Count
Source
335
22.5k
    explicit UnaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::UnaryFunctionAdapter<cel::StringValue, bool>::UnaryFunctionImpl::UnaryFunctionImpl(absl::lts_20260526::AnyInvocable<cel::StringValue (bool, cel::Function::InvokeContext const&) const>)
Line
Count
Source
335
22.5k
    explicit UnaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::UnaryFunctionAdapter<cel::StringValue, long>::UnaryFunctionImpl::UnaryFunctionImpl(absl::lts_20260526::AnyInvocable<cel::StringValue (long, cel::Function::InvokeContext const&) const>)
Line
Count
Source
335
22.5k
    explicit UnaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::UnaryFunctionAdapter<cel::StringValue, cel::StringValue>::UnaryFunctionImpl::UnaryFunctionImpl(absl::lts_20260526::AnyInvocable<cel::StringValue (cel::StringValue, cel::Function::InvokeContext const&) const>)
Line
Count
Source
335
22.5k
    explicit UnaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::UnaryFunctionAdapter<cel::StringValue, unsigned long>::UnaryFunctionImpl::UnaryFunctionImpl(absl::lts_20260526::AnyInvocable<cel::StringValue (unsigned long, cel::Function::InvokeContext const&) const>)
Line
Count
Source
335
22.5k
    explicit UnaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::UnaryFunctionAdapter<cel::Value, absl::lts_20260526::Duration>::UnaryFunctionImpl::UnaryFunctionImpl(absl::lts_20260526::AnyInvocable<cel::Value (absl::lts_20260526::Duration, cel::Function::InvokeContext const&) const>)
Line
Count
Source
335
45.1k
    explicit UnaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::UnaryFunctionAdapter<unsigned long, unsigned long>::UnaryFunctionImpl::UnaryFunctionImpl(absl::lts_20260526::AnyInvocable<unsigned long (unsigned long, cel::Function::InvokeContext const&) const>)
Line
Count
Source
335
22.5k
    explicit UnaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::UnaryFunctionAdapter<cel::Value, cel::Value const&>::UnaryFunctionImpl::UnaryFunctionImpl(absl::lts_20260526::AnyInvocable<cel::Value (cel::Value const&, cel::Function::InvokeContext const&) const>)
Line
Count
Source
335
45.1k
    explicit UnaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
336
    absl::StatusOr<Value> Invoke(
337
        absl::Span<const Value> args,
338
346k
        const Function::InvokeContext& context) const final {
339
346k
      using ArgTraits = runtime_internal::AdaptedTypeTraits<U>;
340
346k
      if (args.size() != 1) {
341
0
        return absl::InvalidArgumentError(
342
0
            "unexpected number of arguments for unary function");
343
0
      }
344
346k
      typename ArgTraits::AssignableType arg1;
345
346
346k
      CEL_RETURN_IF_ERROR(
347
346k
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
348
      if constexpr (std::is_same_v<T, Value> ||
349
338k
                    std::is_same_v<T, absl::StatusOr<Value>>) {
350
338k
        return fn_(ArgTraits::ToArg(arg1), context);
351
338k
      } else {
352
8.65k
        T result = fn_(ArgTraits::ToArg(arg1), context);
353
354
8.65k
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
355
8.65k
      }
356
346k
    }
cel::UnaryFunctionAdapter<cel::Value, long>::UnaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Line
Count
Source
338
44.5k
        const Function::InvokeContext& context) const final {
339
44.5k
      using ArgTraits = runtime_internal::AdaptedTypeTraits<U>;
340
44.5k
      if (args.size() != 1) {
341
0
        return absl::InvalidArgumentError(
342
0
            "unexpected number of arguments for unary function");
343
0
      }
344
44.5k
      typename ArgTraits::AssignableType arg1;
345
346
44.5k
      CEL_RETURN_IF_ERROR(
347
44.5k
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
348
      if constexpr (std::is_same_v<T, Value> ||
349
44.5k
                    std::is_same_v<T, absl::StatusOr<Value>>) {
350
44.5k
        return fn_(ArgTraits::ToArg(arg1), context);
351
      } else {
352
        T result = fn_(ArgTraits::ToArg(arg1), context);
353
354
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
355
      }
356
44.5k
    }
cel::UnaryFunctionAdapter<double, double>::UnaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Line
Count
Source
338
3.63k
        const Function::InvokeContext& context) const final {
339
3.63k
      using ArgTraits = runtime_internal::AdaptedTypeTraits<U>;
340
3.63k
      if (args.size() != 1) {
341
0
        return absl::InvalidArgumentError(
342
0
            "unexpected number of arguments for unary function");
343
0
      }
344
3.63k
      typename ArgTraits::AssignableType arg1;
345
346
3.63k
      CEL_RETURN_IF_ERROR(
347
3.63k
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
348
      if constexpr (std::is_same_v<T, Value> ||
349
                    std::is_same_v<T, absl::StatusOr<Value>>) {
350
        return fn_(ArgTraits::ToArg(arg1), context);
351
3.63k
      } else {
352
3.63k
        T result = fn_(ArgTraits::ToArg(arg1), context);
353
354
3.63k
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
355
3.63k
      }
356
3.63k
    }
cel::UnaryFunctionAdapter<absl::lts_20260526::StatusOr<long>, cel::ListValue const&>::UnaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Line
Count
Source
338
66
        const Function::InvokeContext& context) const final {
339
66
      using ArgTraits = runtime_internal::AdaptedTypeTraits<U>;
340
66
      if (args.size() != 1) {
341
0
        return absl::InvalidArgumentError(
342
0
            "unexpected number of arguments for unary function");
343
0
      }
344
66
      typename ArgTraits::AssignableType arg1;
345
346
66
      CEL_RETURN_IF_ERROR(
347
66
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
348
      if constexpr (std::is_same_v<T, Value> ||
349
                    std::is_same_v<T, absl::StatusOr<Value>>) {
350
        return fn_(ArgTraits::ToArg(arg1), context);
351
66
      } else {
352
66
        T result = fn_(ArgTraits::ToArg(arg1), context);
353
354
66
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
355
66
      }
356
66
    }
cel::UnaryFunctionAdapter<absl::lts_20260526::StatusOr<long>, cel::MapValue const&>::UnaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Line
Count
Source
338
104
        const Function::InvokeContext& context) const final {
339
104
      using ArgTraits = runtime_internal::AdaptedTypeTraits<U>;
340
104
      if (args.size() != 1) {
341
0
        return absl::InvalidArgumentError(
342
0
            "unexpected number of arguments for unary function");
343
0
      }
344
104
      typename ArgTraits::AssignableType arg1;
345
346
104
      CEL_RETURN_IF_ERROR(
347
104
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
348
      if constexpr (std::is_same_v<T, Value> ||
349
                    std::is_same_v<T, absl::StatusOr<Value>>) {
350
        return fn_(ArgTraits::ToArg(arg1), context);
351
104
      } else {
352
104
        T result = fn_(ArgTraits::ToArg(arg1), context);
353
354
104
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
355
104
      }
356
104
    }
cel::UnaryFunctionAdapter<bool, bool>::UnaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Line
Count
Source
338
46
        const Function::InvokeContext& context) const final {
339
46
      using ArgTraits = runtime_internal::AdaptedTypeTraits<U>;
340
46
      if (args.size() != 1) {
341
0
        return absl::InvalidArgumentError(
342
0
            "unexpected number of arguments for unary function");
343
0
      }
344
46
      typename ArgTraits::AssignableType arg1;
345
346
46
      CEL_RETURN_IF_ERROR(
347
46
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
348
      if constexpr (std::is_same_v<T, Value> ||
349
                    std::is_same_v<T, absl::StatusOr<Value>>) {
350
        return fn_(ArgTraits::ToArg(arg1), context);
351
46
      } else {
352
46
        T result = fn_(ArgTraits::ToArg(arg1), context);
353
354
46
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
355
46
      }
356
46
    }
Unexecuted instantiation: cel::UnaryFunctionAdapter<cel::Value, cel::Value>::UnaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
cel::UnaryFunctionAdapter<long, cel::StringValue const&>::UnaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Line
Count
Source
338
537
        const Function::InvokeContext& context) const final {
339
537
      using ArgTraits = runtime_internal::AdaptedTypeTraits<U>;
340
537
      if (args.size() != 1) {
341
0
        return absl::InvalidArgumentError(
342
0
            "unexpected number of arguments for unary function");
343
0
      }
344
537
      typename ArgTraits::AssignableType arg1;
345
346
537
      CEL_RETURN_IF_ERROR(
347
537
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
348
      if constexpr (std::is_same_v<T, Value> ||
349
                    std::is_same_v<T, absl::StatusOr<Value>>) {
350
        return fn_(ArgTraits::ToArg(arg1), context);
351
537
      } else {
352
537
        T result = fn_(ArgTraits::ToArg(arg1), context);
353
354
537
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
355
537
      }
356
537
    }
cel::UnaryFunctionAdapter<long, cel::BytesValue const&>::UnaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Line
Count
Source
338
700
        const Function::InvokeContext& context) const final {
339
700
      using ArgTraits = runtime_internal::AdaptedTypeTraits<U>;
340
700
      if (args.size() != 1) {
341
0
        return absl::InvalidArgumentError(
342
0
            "unexpected number of arguments for unary function");
343
0
      }
344
700
      typename ArgTraits::AssignableType arg1;
345
346
700
      CEL_RETURN_IF_ERROR(
347
700
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
348
      if constexpr (std::is_same_v<T, Value> ||
349
                    std::is_same_v<T, absl::StatusOr<Value>>) {
350
        return fn_(ArgTraits::ToArg(arg1), context);
351
700
      } else {
352
700
        T result = fn_(ArgTraits::ToArg(arg1), context);
353
354
700
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
355
700
      }
356
700
    }
cel::UnaryFunctionAdapter<cel::Value, absl::lts_20260526::Time>::UnaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Line
Count
Source
338
531
        const Function::InvokeContext& context) const final {
339
531
      using ArgTraits = runtime_internal::AdaptedTypeTraits<U>;
340
531
      if (args.size() != 1) {
341
0
        return absl::InvalidArgumentError(
342
0
            "unexpected number of arguments for unary function");
343
0
      }
344
531
      typename ArgTraits::AssignableType arg1;
345
346
531
      CEL_RETURN_IF_ERROR(
347
531
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
348
      if constexpr (std::is_same_v<T, Value> ||
349
531
                    std::is_same_v<T, absl::StatusOr<Value>>) {
350
531
        return fn_(ArgTraits::ToArg(arg1), context);
351
      } else {
352
        T result = fn_(ArgTraits::ToArg(arg1), context);
353
354
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
355
      }
356
531
    }
Unexecuted instantiation: cel::UnaryFunctionAdapter<long, absl::lts_20260526::Duration>::UnaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
cel::UnaryFunctionAdapter<cel::Value, cel::StringValue>::UnaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Line
Count
Source
338
8.45k
        const Function::InvokeContext& context) const final {
339
8.45k
      using ArgTraits = runtime_internal::AdaptedTypeTraits<U>;
340
8.45k
      if (args.size() != 1) {
341
0
        return absl::InvalidArgumentError(
342
0
            "unexpected number of arguments for unary function");
343
0
      }
344
8.45k
      typename ArgTraits::AssignableType arg1;
345
346
8.45k
      CEL_RETURN_IF_ERROR(
347
8.45k
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
348
      if constexpr (std::is_same_v<T, Value> ||
349
8.45k
                    std::is_same_v<T, absl::StatusOr<Value>>) {
350
8.45k
        return fn_(ArgTraits::ToArg(arg1), context);
351
      } else {
352
        T result = fn_(ArgTraits::ToArg(arg1), context);
353
354
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
355
      }
356
8.45k
    }
cel::UnaryFunctionAdapter<cel::BytesValue, cel::BytesValue>::UnaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Line
Count
Source
338
539
        const Function::InvokeContext& context) const final {
339
539
      using ArgTraits = runtime_internal::AdaptedTypeTraits<U>;
340
539
      if (args.size() != 1) {
341
0
        return absl::InvalidArgumentError(
342
0
            "unexpected number of arguments for unary function");
343
0
      }
344
539
      typename ArgTraits::AssignableType arg1;
345
346
539
      CEL_RETURN_IF_ERROR(
347
539
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
348
      if constexpr (std::is_same_v<T, Value> ||
349
                    std::is_same_v<T, absl::StatusOr<Value>>) {
350
        return fn_(ArgTraits::ToArg(arg1), context);
351
539
      } else {
352
539
        T result = fn_(ArgTraits::ToArg(arg1), context);
353
354
539
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
355
539
      }
356
539
    }
cel::UnaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::BytesValue>, cel::StringValue const&>::UnaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Line
Count
Source
338
348
        const Function::InvokeContext& context) const final {
339
348
      using ArgTraits = runtime_internal::AdaptedTypeTraits<U>;
340
348
      if (args.size() != 1) {
341
0
        return absl::InvalidArgumentError(
342
0
            "unexpected number of arguments for unary function");
343
0
      }
344
348
      typename ArgTraits::AssignableType arg1;
345
346
348
      CEL_RETURN_IF_ERROR(
347
348
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
348
      if constexpr (std::is_same_v<T, Value> ||
349
                    std::is_same_v<T, absl::StatusOr<Value>>) {
350
        return fn_(ArgTraits::ToArg(arg1), context);
351
348
      } else {
352
348
        T result = fn_(ArgTraits::ToArg(arg1), context);
353
354
348
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
355
348
      }
356
348
    }
cel::UnaryFunctionAdapter<double, long>::UnaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Line
Count
Source
338
78
        const Function::InvokeContext& context) const final {
339
78
      using ArgTraits = runtime_internal::AdaptedTypeTraits<U>;
340
78
      if (args.size() != 1) {
341
0
        return absl::InvalidArgumentError(
342
0
            "unexpected number of arguments for unary function");
343
0
      }
344
78
      typename ArgTraits::AssignableType arg1;
345
346
78
      CEL_RETURN_IF_ERROR(
347
78
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
348
      if constexpr (std::is_same_v<T, Value> ||
349
                    std::is_same_v<T, absl::StatusOr<Value>>) {
350
        return fn_(ArgTraits::ToArg(arg1), context);
351
78
      } else {
352
78
        T result = fn_(ArgTraits::ToArg(arg1), context);
353
354
78
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
355
78
      }
356
78
    }
cel::UnaryFunctionAdapter<cel::Value, cel::StringValue const&>::UnaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Line
Count
Source
338
191k
        const Function::InvokeContext& context) const final {
339
191k
      using ArgTraits = runtime_internal::AdaptedTypeTraits<U>;
340
191k
      if (args.size() != 1) {
341
0
        return absl::InvalidArgumentError(
342
0
            "unexpected number of arguments for unary function");
343
0
      }
344
191k
      typename ArgTraits::AssignableType arg1;
345
346
191k
      CEL_RETURN_IF_ERROR(
347
191k
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
348
      if constexpr (std::is_same_v<T, Value> ||
349
191k
                    std::is_same_v<T, absl::StatusOr<Value>>) {
350
191k
        return fn_(ArgTraits::ToArg(arg1), context);
351
      } else {
352
        T result = fn_(ArgTraits::ToArg(arg1), context);
353
354
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
355
      }
356
191k
    }
cel::UnaryFunctionAdapter<double, unsigned long>::UnaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Line
Count
Source
338
78
        const Function::InvokeContext& context) const final {
339
78
      using ArgTraits = runtime_internal::AdaptedTypeTraits<U>;
340
78
      if (args.size() != 1) {
341
0
        return absl::InvalidArgumentError(
342
0
            "unexpected number of arguments for unary function");
343
0
      }
344
78
      typename ArgTraits::AssignableType arg1;
345
346
78
      CEL_RETURN_IF_ERROR(
347
78
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
348
      if constexpr (std::is_same_v<T, Value> ||
349
                    std::is_same_v<T, absl::StatusOr<Value>>) {
350
        return fn_(ArgTraits::ToArg(arg1), context);
351
78
      } else {
352
78
        T result = fn_(ArgTraits::ToArg(arg1), context);
353
354
78
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
355
78
      }
356
78
    }
cel::UnaryFunctionAdapter<long, bool>::UnaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Line
Count
Source
338
237
        const Function::InvokeContext& context) const final {
339
237
      using ArgTraits = runtime_internal::AdaptedTypeTraits<U>;
340
237
      if (args.size() != 1) {
341
0
        return absl::InvalidArgumentError(
342
0
            "unexpected number of arguments for unary function");
343
0
      }
344
237
      typename ArgTraits::AssignableType arg1;
345
346
237
      CEL_RETURN_IF_ERROR(
347
237
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
348
      if constexpr (std::is_same_v<T, Value> ||
349
                    std::is_same_v<T, absl::StatusOr<Value>>) {
350
        return fn_(ArgTraits::ToArg(arg1), context);
351
237
      } else {
352
237
        T result = fn_(ArgTraits::ToArg(arg1), context);
353
354
237
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
355
237
      }
356
237
    }
cel::UnaryFunctionAdapter<cel::Value, double>::UnaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Line
Count
Source
338
77.5k
        const Function::InvokeContext& context) const final {
339
77.5k
      using ArgTraits = runtime_internal::AdaptedTypeTraits<U>;
340
77.5k
      if (args.size() != 1) {
341
0
        return absl::InvalidArgumentError(
342
0
            "unexpected number of arguments for unary function");
343
0
      }
344
77.5k
      typename ArgTraits::AssignableType arg1;
345
346
77.5k
      CEL_RETURN_IF_ERROR(
347
77.5k
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
348
      if constexpr (std::is_same_v<T, Value> ||
349
77.5k
                    std::is_same_v<T, absl::StatusOr<Value>>) {
350
77.5k
        return fn_(ArgTraits::ToArg(arg1), context);
351
      } else {
352
        T result = fn_(ArgTraits::ToArg(arg1), context);
353
354
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
355
      }
356
77.5k
    }
cel::UnaryFunctionAdapter<long, long>::UnaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Line
Count
Source
338
102
        const Function::InvokeContext& context) const final {
339
102
      using ArgTraits = runtime_internal::AdaptedTypeTraits<U>;
340
102
      if (args.size() != 1) {
341
0
        return absl::InvalidArgumentError(
342
0
            "unexpected number of arguments for unary function");
343
0
      }
344
102
      typename ArgTraits::AssignableType arg1;
345
346
102
      CEL_RETURN_IF_ERROR(
347
102
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
348
      if constexpr (std::is_same_v<T, Value> ||
349
                    std::is_same_v<T, absl::StatusOr<Value>>) {
350
        return fn_(ArgTraits::ToArg(arg1), context);
351
102
      } else {
352
102
        T result = fn_(ArgTraits::ToArg(arg1), context);
353
354
102
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
355
102
      }
356
102
    }
Unexecuted instantiation: cel::UnaryFunctionAdapter<long, absl::lts_20260526::Time>::UnaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
cel::UnaryFunctionAdapter<cel::Value, unsigned long>::UnaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Line
Count
Source
338
10.4k
        const Function::InvokeContext& context) const final {
339
10.4k
      using ArgTraits = runtime_internal::AdaptedTypeTraits<U>;
340
10.4k
      if (args.size() != 1) {
341
0
        return absl::InvalidArgumentError(
342
0
            "unexpected number of arguments for unary function");
343
0
      }
344
10.4k
      typename ArgTraits::AssignableType arg1;
345
346
10.4k
      CEL_RETURN_IF_ERROR(
347
10.4k
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
348
      if constexpr (std::is_same_v<T, Value> ||
349
10.4k
                    std::is_same_v<T, absl::StatusOr<Value>>) {
350
10.4k
        return fn_(ArgTraits::ToArg(arg1), context);
351
      } else {
352
        T result = fn_(ArgTraits::ToArg(arg1), context);
353
354
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
355
      }
356
10.4k
    }
cel::UnaryFunctionAdapter<cel::Value, cel::BytesValue const&>::UnaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Line
Count
Source
338
2.31k
        const Function::InvokeContext& context) const final {
339
2.31k
      using ArgTraits = runtime_internal::AdaptedTypeTraits<U>;
340
2.31k
      if (args.size() != 1) {
341
0
        return absl::InvalidArgumentError(
342
0
            "unexpected number of arguments for unary function");
343
0
      }
344
2.31k
      typename ArgTraits::AssignableType arg1;
345
346
2.31k
      CEL_RETURN_IF_ERROR(
347
2.31k
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
348
      if constexpr (std::is_same_v<T, Value> ||
349
2.31k
                    std::is_same_v<T, absl::StatusOr<Value>>) {
350
2.31k
        return fn_(ArgTraits::ToArg(arg1), context);
351
      } else {
352
        T result = fn_(ArgTraits::ToArg(arg1), context);
353
354
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
355
      }
356
2.31k
    }
cel::UnaryFunctionAdapter<cel::StringValue, bool>::UnaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Line
Count
Source
338
670
        const Function::InvokeContext& context) const final {
339
670
      using ArgTraits = runtime_internal::AdaptedTypeTraits<U>;
340
670
      if (args.size() != 1) {
341
0
        return absl::InvalidArgumentError(
342
0
            "unexpected number of arguments for unary function");
343
0
      }
344
670
      typename ArgTraits::AssignableType arg1;
345
346
670
      CEL_RETURN_IF_ERROR(
347
670
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
348
      if constexpr (std::is_same_v<T, Value> ||
349
                    std::is_same_v<T, absl::StatusOr<Value>>) {
350
        return fn_(ArgTraits::ToArg(arg1), context);
351
670
      } else {
352
670
        T result = fn_(ArgTraits::ToArg(arg1), context);
353
354
670
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
355
670
      }
356
670
    }
cel::UnaryFunctionAdapter<cel::StringValue, long>::UnaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Line
Count
Source
338
497
        const Function::InvokeContext& context) const final {
339
497
      using ArgTraits = runtime_internal::AdaptedTypeTraits<U>;
340
497
      if (args.size() != 1) {
341
0
        return absl::InvalidArgumentError(
342
0
            "unexpected number of arguments for unary function");
343
0
      }
344
497
      typename ArgTraits::AssignableType arg1;
345
346
497
      CEL_RETURN_IF_ERROR(
347
497
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
348
      if constexpr (std::is_same_v<T, Value> ||
349
                    std::is_same_v<T, absl::StatusOr<Value>>) {
350
        return fn_(ArgTraits::ToArg(arg1), context);
351
497
      } else {
352
497
        T result = fn_(ArgTraits::ToArg(arg1), context);
353
354
497
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
355
497
      }
356
497
    }
cel::UnaryFunctionAdapter<cel::StringValue, cel::StringValue>::UnaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Line
Count
Source
338
250
        const Function::InvokeContext& context) const final {
339
250
      using ArgTraits = runtime_internal::AdaptedTypeTraits<U>;
340
250
      if (args.size() != 1) {
341
0
        return absl::InvalidArgumentError(
342
0
            "unexpected number of arguments for unary function");
343
0
      }
344
250
      typename ArgTraits::AssignableType arg1;
345
346
250
      CEL_RETURN_IF_ERROR(
347
250
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
348
      if constexpr (std::is_same_v<T, Value> ||
349
                    std::is_same_v<T, absl::StatusOr<Value>>) {
350
        return fn_(ArgTraits::ToArg(arg1), context);
351
250
      } else {
352
250
        T result = fn_(ArgTraits::ToArg(arg1), context);
353
354
250
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
355
250
      }
356
250
    }
cel::UnaryFunctionAdapter<cel::StringValue, unsigned long>::UnaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Line
Count
Source
338
561
        const Function::InvokeContext& context) const final {
339
561
      using ArgTraits = runtime_internal::AdaptedTypeTraits<U>;
340
561
      if (args.size() != 1) {
341
0
        return absl::InvalidArgumentError(
342
0
            "unexpected number of arguments for unary function");
343
0
      }
344
561
      typename ArgTraits::AssignableType arg1;
345
346
561
      CEL_RETURN_IF_ERROR(
347
561
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
348
      if constexpr (std::is_same_v<T, Value> ||
349
                    std::is_same_v<T, absl::StatusOr<Value>>) {
350
        return fn_(ArgTraits::ToArg(arg1), context);
351
561
      } else {
352
561
        T result = fn_(ArgTraits::ToArg(arg1), context);
353
354
561
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
355
561
      }
356
561
    }
cel::UnaryFunctionAdapter<cel::Value, absl::lts_20260526::Duration>::UnaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Line
Count
Source
338
559
        const Function::InvokeContext& context) const final {
339
559
      using ArgTraits = runtime_internal::AdaptedTypeTraits<U>;
340
559
      if (args.size() != 1) {
341
0
        return absl::InvalidArgumentError(
342
0
            "unexpected number of arguments for unary function");
343
0
      }
344
559
      typename ArgTraits::AssignableType arg1;
345
346
559
      CEL_RETURN_IF_ERROR(
347
559
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
348
      if constexpr (std::is_same_v<T, Value> ||
349
559
                    std::is_same_v<T, absl::StatusOr<Value>>) {
350
559
        return fn_(ArgTraits::ToArg(arg1), context);
351
      } else {
352
        T result = fn_(ArgTraits::ToArg(arg1), context);
353
354
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
355
      }
356
559
    }
cel::UnaryFunctionAdapter<unsigned long, unsigned long>::UnaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Line
Count
Source
338
204
        const Function::InvokeContext& context) const final {
339
204
      using ArgTraits = runtime_internal::AdaptedTypeTraits<U>;
340
204
      if (args.size() != 1) {
341
0
        return absl::InvalidArgumentError(
342
0
            "unexpected number of arguments for unary function");
343
0
      }
344
204
      typename ArgTraits::AssignableType arg1;
345
346
204
      CEL_RETURN_IF_ERROR(
347
204
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
348
      if constexpr (std::is_same_v<T, Value> ||
349
                    std::is_same_v<T, absl::StatusOr<Value>>) {
350
        return fn_(ArgTraits::ToArg(arg1), context);
351
204
      } else {
352
204
        T result = fn_(ArgTraits::ToArg(arg1), context);
353
354
204
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
355
204
      }
356
204
    }
cel::UnaryFunctionAdapter<cel::Value, cel::Value const&>::UnaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Line
Count
Source
338
2.36k
        const Function::InvokeContext& context) const final {
339
2.36k
      using ArgTraits = runtime_internal::AdaptedTypeTraits<U>;
340
2.36k
      if (args.size() != 1) {
341
0
        return absl::InvalidArgumentError(
342
0
            "unexpected number of arguments for unary function");
343
0
      }
344
2.36k
      typename ArgTraits::AssignableType arg1;
345
346
2.36k
      CEL_RETURN_IF_ERROR(
347
2.36k
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
348
      if constexpr (std::is_same_v<T, Value> ||
349
2.36k
                    std::is_same_v<T, absl::StatusOr<Value>>) {
350
2.36k
        return fn_(ArgTraits::ToArg(arg1), context);
351
      } else {
352
        T result = fn_(ArgTraits::ToArg(arg1), context);
353
354
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
355
      }
356
2.36k
    }
357
358
   private:
359
    FunctionType fn_;
360
  };
361
};
362
363
// Adapter class for generating CEL extension functions from a two argument
364
// function. Generates an implementation of the cel::Function interface that
365
// calls the function to wrap.
366
//
367
// Extension functions must distinguish between recoverable errors (error that
368
// should participate in CEL's error pruning) and unrecoverable errors (a non-ok
369
// absl::Status that stops evaluation). The function to wrap may return
370
// StatusOr<T> to propagate a Status, or return a Value with an Error
371
// value to introduce a CEL error.
372
//
373
// To introduce an extension function that may accept any kind of CEL value as
374
// an argument, the wrapped function should use a Value<Handle> parameter and
375
// check the type of the argument at evaluation time.
376
//
377
// Supported CEL to C++ type mappings:
378
// bool -> bool
379
// double -> double
380
// uint -> uint64_t
381
// int -> int64_t
382
// timestamp -> absl::Time
383
// duration -> absl::Duration
384
//
385
// Complex types may be referred to by cref or value.
386
// To return these, users should return a Value.
387
// any/dyn -> Value, const Value&
388
// string -> StringValue | const StringValue&
389
// bytes -> BytesValue | const BytesValue&
390
// list -> ListValue | const ListValue&
391
// map -> MapValue | const MapValue&
392
// struct -> StructValue | const StructValue&
393
// null -> NullValue | const NullValue&
394
//
395
// To intercept error and unknown arguments, users must use a non-strict
396
// overload with all arguments typed as any and check the kind of the
397
// Value argument.
398
//
399
// Example Usage:
400
//  double SquareDifference(ValueManager&, double x, double y) {
401
//    return x * x - y * y;
402
//  }
403
//
404
//  {
405
//    RuntimeBuilder builder;
406
//    // Initialize Expression builder with built-ins as needed.
407
//
408
//    CEL_RETURN_IF_ERROR(
409
//      builder.function_registry().Register(
410
//        BinaryFunctionAdapter<double, double, double>::CreateDescriptor(
411
//          "sq_diff", /*receiver_style=*/false),
412
//        BinaryFunctionAdapter<double, double, double>::WrapFunction(
413
//          &SquareDifference)));
414
//
415
//
416
//    // Alternative shorthand
417
//    // See RegisterHelper (template base class) for details.
418
//    // runtime/register_function_helper.h
419
//    auto status = BinaryFunctionAdapter<double, double, double>::
420
//        RegisterGlobalOverload(
421
//            "sq_diff",
422
//            &SquareDifference,
423
//            builder.function_registry());
424
//    CEL_RETURN_IF_ERROR(status);
425
//  }
426
//
427
// example CEL expression:
428
//  sq_diff(4, 3) == 7 [true]
429
//
430
template <typename T, typename U, typename V>
431
class BinaryFunctionAdapter
432
    : public RegisterHelper<BinaryFunctionAdapter<T, U, V>> {
433
 public:
434
  using FunctionType =
435
      absl::AnyInvocable<T(U, V, const Function::InvokeContext&) const>;
436
437
2.61M
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
438
2.61M
    return std::make_unique<BinaryFunctionImpl>(std::move(fn));
439
2.61M
  }
cel::BinaryFunctionAdapter<cel::Value, double, double>::WrapFunction(absl::lts_20260526::AnyInvocable<cel::Value (double, double, cel::Function::InvokeContext const&) const>)
Line
Count
Source
437
90.2k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
438
90.2k
    return std::make_unique<BinaryFunctionImpl>(std::move(fn));
439
90.2k
  }
cel::BinaryFunctionAdapter<cel::Value, long, long>::WrapFunction(absl::lts_20260526::AnyInvocable<cel::Value (long, long, cel::Function::InvokeContext const&) const>)
Line
Count
Source
437
112k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
438
112k
    return std::make_unique<BinaryFunctionImpl>(std::move(fn));
439
112k
  }
cel::BinaryFunctionAdapter<cel::Value, unsigned long, unsigned long>::WrapFunction(absl::lts_20260526::AnyInvocable<cel::Value (unsigned long, unsigned long, cel::Function::InvokeContext const&) const>)
Line
Count
Source
437
112k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
438
112k
    return std::make_unique<BinaryFunctionImpl>(std::move(fn));
439
112k
  }
cel::BinaryFunctionAdapter<bool, double, long>::WrapFunction(absl::lts_20260526::AnyInvocable<bool (double, long, cel::Function::InvokeContext const&) const>)
Line
Count
Source
437
90.2k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
438
90.2k
    return std::make_unique<BinaryFunctionImpl>(std::move(fn));
439
90.2k
  }
cel::BinaryFunctionAdapter<bool, double, unsigned long>::WrapFunction(absl::lts_20260526::AnyInvocable<bool (double, unsigned long, cel::Function::InvokeContext const&) const>)
Line
Count
Source
437
90.2k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
438
90.2k
    return std::make_unique<BinaryFunctionImpl>(std::move(fn));
439
90.2k
  }
cel::BinaryFunctionAdapter<bool, unsigned long, double>::WrapFunction(absl::lts_20260526::AnyInvocable<bool (unsigned long, double, cel::Function::InvokeContext const&) const>)
Line
Count
Source
437
90.2k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
438
90.2k
    return std::make_unique<BinaryFunctionImpl>(std::move(fn));
439
90.2k
  }
cel::BinaryFunctionAdapter<bool, unsigned long, long>::WrapFunction(absl::lts_20260526::AnyInvocable<bool (unsigned long, long, cel::Function::InvokeContext const&) const>)
Line
Count
Source
437
90.2k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
438
90.2k
    return std::make_unique<BinaryFunctionImpl>(std::move(fn));
439
90.2k
  }
cel::BinaryFunctionAdapter<bool, long, double>::WrapFunction(absl::lts_20260526::AnyInvocable<bool (long, double, cel::Function::InvokeContext const&) const>)
Line
Count
Source
437
90.2k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
438
90.2k
    return std::make_unique<BinaryFunctionImpl>(std::move(fn));
439
90.2k
  }
cel::BinaryFunctionAdapter<bool, long, unsigned long>::WrapFunction(absl::lts_20260526::AnyInvocable<bool (long, unsigned long, cel::Function::InvokeContext const&) const>)
Line
Count
Source
437
90.2k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
438
90.2k
    return std::make_unique<BinaryFunctionImpl>(std::move(fn));
439
90.2k
  }
cel::BinaryFunctionAdapter<bool, bool, bool>::WrapFunction(absl::lts_20260526::AnyInvocable<bool (bool, bool, cel::Function::InvokeContext const&) const>)
Line
Count
Source
437
90.2k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
438
90.2k
    return std::make_unique<BinaryFunctionImpl>(std::move(fn));
439
90.2k
  }
cel::BinaryFunctionAdapter<bool, long, long>::WrapFunction(absl::lts_20260526::AnyInvocable<bool (long, long, cel::Function::InvokeContext const&) const>)
Line
Count
Source
437
90.2k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
438
90.2k
    return std::make_unique<BinaryFunctionImpl>(std::move(fn));
439
90.2k
  }
cel::BinaryFunctionAdapter<bool, unsigned long, unsigned long>::WrapFunction(absl::lts_20260526::AnyInvocable<bool (unsigned long, unsigned long, cel::Function::InvokeContext const&) const>)
Line
Count
Source
437
90.2k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
438
90.2k
    return std::make_unique<BinaryFunctionImpl>(std::move(fn));
439
90.2k
  }
cel::BinaryFunctionAdapter<bool, double, double>::WrapFunction(absl::lts_20260526::AnyInvocable<bool (double, double, cel::Function::InvokeContext const&) const>)
Line
Count
Source
437
90.2k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
438
90.2k
    return std::make_unique<BinaryFunctionImpl>(std::move(fn));
439
90.2k
  }
cel::BinaryFunctionAdapter<bool, cel::StringValue const&, cel::StringValue const&>::WrapFunction(absl::lts_20260526::AnyInvocable<bool (cel::StringValue const&, cel::StringValue const&, cel::Function::InvokeContext const&) const>)
Line
Count
Source
437
225k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
438
225k
    return std::make_unique<BinaryFunctionImpl>(std::move(fn));
439
225k
  }
cel::BinaryFunctionAdapter<bool, cel::BytesValue const&, cel::BytesValue const&>::WrapFunction(absl::lts_20260526::AnyInvocable<bool (cel::BytesValue const&, cel::BytesValue const&, cel::Function::InvokeContext const&) const>)
Line
Count
Source
437
90.2k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
438
90.2k
    return std::make_unique<BinaryFunctionImpl>(std::move(fn));
439
90.2k
  }
cel::BinaryFunctionAdapter<bool, absl::lts_20260526::Duration, absl::lts_20260526::Duration>::WrapFunction(absl::lts_20260526::AnyInvocable<bool (absl::lts_20260526::Duration, absl::lts_20260526::Duration, cel::Function::InvokeContext const&) const>)
Line
Count
Source
437
90.2k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
438
90.2k
    return std::make_unique<BinaryFunctionImpl>(std::move(fn));
439
90.2k
  }
cel::BinaryFunctionAdapter<bool, absl::lts_20260526::Time, absl::lts_20260526::Time>::WrapFunction(absl::lts_20260526::AnyInvocable<bool (absl::lts_20260526::Time, absl::lts_20260526::Time, cel::Function::InvokeContext const&) const>)
Line
Count
Source
437
90.2k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
438
90.2k
    return std::make_unique<BinaryFunctionImpl>(std::move(fn));
439
90.2k
  }
cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::Value>, cel::ListValue const&, cel::ListValue const&>::WrapFunction(absl::lts_20260526::AnyInvocable<absl::lts_20260526::StatusOr<cel::Value> (cel::ListValue const&, cel::ListValue const&, cel::Function::InvokeContext const&) const>)
Line
Count
Source
437
22.5k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
438
22.5k
    return std::make_unique<BinaryFunctionImpl>(std::move(fn));
439
22.5k
  }
cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::ListValue>, cel::ListValue, cel::Value const&>::WrapFunction(absl::lts_20260526::AnyInvocable<absl::lts_20260526::StatusOr<cel::ListValue> (cel::ListValue, cel::Value const&, cel::Function::InvokeContext const&) const>)
Line
Count
Source
437
22.5k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
438
22.5k
    return std::make_unique<BinaryFunctionImpl>(std::move(fn));
439
22.5k
  }
cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::Value>, cel::Value const&, cel::ListValue const&>::WrapFunction(absl::lts_20260526::AnyInvocable<absl::lts_20260526::StatusOr<cel::Value> (cel::Value const&, cel::ListValue const&, cel::Function::InvokeContext const&) const>)
Line
Count
Source
437
67.6k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
438
67.6k
    return std::make_unique<BinaryFunctionImpl>(std::move(fn));
439
67.6k
  }
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<bool>, bool, cel::ListValue const&>::WrapFunction(absl::lts_20260526::AnyInvocable<absl::lts_20260526::StatusOr<bool> (bool, cel::ListValue const&, cel::Function::InvokeContext const&) const>)
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<bool>, long, cel::ListValue const&>::WrapFunction(absl::lts_20260526::AnyInvocable<absl::lts_20260526::StatusOr<bool> (long, cel::ListValue const&, cel::Function::InvokeContext const&) const>)
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<bool>, unsigned long, cel::ListValue const&>::WrapFunction(absl::lts_20260526::AnyInvocable<absl::lts_20260526::StatusOr<bool> (unsigned long, cel::ListValue const&, cel::Function::InvokeContext const&) const>)
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<bool>, double, cel::ListValue const&>::WrapFunction(absl::lts_20260526::AnyInvocable<absl::lts_20260526::StatusOr<bool> (double, cel::ListValue const&, cel::Function::InvokeContext const&) const>)
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<bool>, cel::StringValue const&, cel::ListValue const&>::WrapFunction(absl::lts_20260526::AnyInvocable<absl::lts_20260526::StatusOr<bool> (cel::StringValue const&, cel::ListValue const&, cel::Function::InvokeContext const&) const>)
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<bool>, cel::BytesValue const&, cel::ListValue const&>::WrapFunction(absl::lts_20260526::AnyInvocable<absl::lts_20260526::StatusOr<bool> (cel::BytesValue const&, cel::ListValue const&, cel::Function::InvokeContext const&) const>)
cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::Value>, cel::StringValue const&, cel::MapValue const&>::WrapFunction(absl::lts_20260526::AnyInvocable<absl::lts_20260526::StatusOr<cel::Value> (cel::StringValue const&, cel::MapValue const&, cel::Function::InvokeContext const&) const>)
Line
Count
Source
437
67.6k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
438
67.6k
    return std::make_unique<BinaryFunctionImpl>(std::move(fn));
439
67.6k
  }
cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::Value>, bool, cel::MapValue const&>::WrapFunction(absl::lts_20260526::AnyInvocable<absl::lts_20260526::StatusOr<cel::Value> (bool, cel::MapValue const&, cel::Function::InvokeContext const&) const>)
Line
Count
Source
437
67.6k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
438
67.6k
    return std::make_unique<BinaryFunctionImpl>(std::move(fn));
439
67.6k
  }
cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::Value>, long, cel::MapValue const&>::WrapFunction(absl::lts_20260526::AnyInvocable<absl::lts_20260526::StatusOr<cel::Value> (long, cel::MapValue const&, cel::Function::InvokeContext const&) const>)
Line
Count
Source
437
67.6k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
438
67.6k
    return std::make_unique<BinaryFunctionImpl>(std::move(fn));
439
67.6k
  }
cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::Value>, unsigned long, cel::MapValue const&>::WrapFunction(absl::lts_20260526::AnyInvocable<absl::lts_20260526::StatusOr<cel::Value> (unsigned long, cel::MapValue const&, cel::Function::InvokeContext const&) const>)
Line
Count
Source
437
67.6k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
438
67.6k
    return std::make_unique<BinaryFunctionImpl>(std::move(fn));
439
67.6k
  }
cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::Value>, double, cel::MapValue const&>::WrapFunction(absl::lts_20260526::AnyInvocable<absl::lts_20260526::StatusOr<cel::Value> (double, cel::MapValue const&, cel::Function::InvokeContext const&) const>)
Line
Count
Source
437
67.6k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
438
67.6k
    return std::make_unique<BinaryFunctionImpl>(std::move(fn));
439
67.6k
  }
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::Value>, cel::Value const&, cel::Value const&>::WrapFunction(absl::lts_20260526::AnyInvocable<absl::lts_20260526::StatusOr<cel::Value> (cel::Value const&, cel::Value const&, cel::Function::InvokeContext const&) const>)
Unexecuted instantiation: cel::BinaryFunctionAdapter<cel::Value, bool, bool>::WrapFunction(absl::lts_20260526::AnyInvocable<cel::Value (bool, bool, cel::Function::InvokeContext const&) const>)
cel::BinaryFunctionAdapter<cel::Value, cel::StringValue const&, cel::StringValue const&>::WrapFunction(absl::lts_20260526::AnyInvocable<cel::Value (cel::StringValue const&, cel::StringValue const&, cel::Function::InvokeContext const&) const>)
Line
Count
Source
437
45.1k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
438
45.1k
    return std::make_unique<BinaryFunctionImpl>(std::move(fn));
439
45.1k
  }
Unexecuted instantiation: cel::BinaryFunctionAdapter<cel::Value, cel::BytesValue const&, cel::BytesValue const&>::WrapFunction(absl::lts_20260526::AnyInvocable<cel::Value (cel::BytesValue const&, cel::BytesValue const&, cel::Function::InvokeContext const&) const>)
cel::BinaryFunctionAdapter<cel::Value, absl::lts_20260526::Duration, absl::lts_20260526::Duration>::WrapFunction(absl::lts_20260526::AnyInvocable<cel::Value (absl::lts_20260526::Duration, absl::lts_20260526::Duration, cel::Function::InvokeContext const&) const>)
Line
Count
Source
437
45.1k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
438
45.1k
    return std::make_unique<BinaryFunctionImpl>(std::move(fn));
439
45.1k
  }
cel::BinaryFunctionAdapter<cel::Value, absl::lts_20260526::Time, absl::lts_20260526::Time>::WrapFunction(absl::lts_20260526::AnyInvocable<cel::Value (absl::lts_20260526::Time, absl::lts_20260526::Time, cel::Function::InvokeContext const&) const>)
Line
Count
Source
437
22.5k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
438
22.5k
    return std::make_unique<BinaryFunctionImpl>(std::move(fn));
439
22.5k
  }
Unexecuted instantiation: cel::BinaryFunctionAdapter<cel::Value, cel::NullValue const&, cel::NullValue const&>::WrapFunction(absl::lts_20260526::AnyInvocable<cel::Value (cel::NullValue const&, cel::NullValue const&, cel::Function::InvokeContext const&) const>)
Unexecuted instantiation: cel::BinaryFunctionAdapter<cel::Value, cel::TypeValue const&, cel::TypeValue const&>::WrapFunction(absl::lts_20260526::AnyInvocable<cel::Value (cel::TypeValue const&, cel::TypeValue const&, cel::Function::InvokeContext const&) const>)
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::Value>, cel::MapValue const&, cel::MapValue const&>::WrapFunction(absl::lts_20260526::AnyInvocable<absl::lts_20260526::StatusOr<cel::Value> (cel::MapValue const&, cel::MapValue const&, cel::Function::InvokeContext const&) const>)
Unexecuted instantiation: cel::BinaryFunctionAdapter<bool, cel::StructValue const&, cel::NullValue const&>::WrapFunction(absl::lts_20260526::AnyInvocable<bool (cel::StructValue const&, cel::NullValue const&, cel::Function::InvokeContext const&) const>)
Unexecuted instantiation: cel::BinaryFunctionAdapter<bool, cel::NullValue const&, cel::StructValue const&>::WrapFunction(absl::lts_20260526::AnyInvocable<bool (cel::NullValue const&, cel::StructValue const&, cel::Function::InvokeContext const&) const>)
cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::StringValue>, cel::StringValue const&, cel::StringValue const&>::WrapFunction(absl::lts_20260526::AnyInvocable<absl::lts_20260526::StatusOr<cel::StringValue> (cel::StringValue const&, cel::StringValue const&, cel::Function::InvokeContext const&) const>)
Line
Count
Source
437
22.5k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
438
22.5k
    return std::make_unique<BinaryFunctionImpl>(std::move(fn));
439
22.5k
  }
cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::BytesValue>, cel::BytesValue const&, cel::BytesValue const&>::WrapFunction(absl::lts_20260526::AnyInvocable<absl::lts_20260526::StatusOr<cel::BytesValue> (cel::BytesValue const&, cel::BytesValue const&, cel::Function::InvokeContext const&) const>)
Line
Count
Source
437
22.5k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
438
22.5k
    return std::make_unique<BinaryFunctionImpl>(std::move(fn));
439
22.5k
  }
cel::BinaryFunctionAdapter<cel::Value, absl::lts_20260526::Time, cel::StringValue const&>::WrapFunction(absl::lts_20260526::AnyInvocable<cel::Value (absl::lts_20260526::Time, cel::StringValue const&, cel::Function::InvokeContext const&) const>)
Line
Count
Source
437
225k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
438
225k
    return std::make_unique<BinaryFunctionImpl>(std::move(fn));
439
225k
  }
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::Value>, absl::lts_20260526::Time, absl::lts_20260526::Duration>::WrapFunction(absl::lts_20260526::AnyInvocable<absl::lts_20260526::StatusOr<cel::Value> (absl::lts_20260526::Time, absl::lts_20260526::Duration, cel::Function::InvokeContext const&) const>)
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::Value>, absl::lts_20260526::Duration, absl::lts_20260526::Time>::WrapFunction(absl::lts_20260526::AnyInvocable<absl::lts_20260526::StatusOr<cel::Value> (absl::lts_20260526::Duration, absl::lts_20260526::Time, cel::Function::InvokeContext const&) const>)
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::Value>, absl::lts_20260526::Duration, absl::lts_20260526::Duration>::WrapFunction(absl::lts_20260526::AnyInvocable<absl::lts_20260526::StatusOr<cel::Value> (absl::lts_20260526::Duration, absl::lts_20260526::Duration, cel::Function::InvokeContext const&) const>)
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::Value>, absl::lts_20260526::Time, absl::lts_20260526::Time>::WrapFunction(absl::lts_20260526::AnyInvocable<absl::lts_20260526::StatusOr<cel::Value> (absl::lts_20260526::Time, absl::lts_20260526::Time, cel::Function::InvokeContext const&) const>)
cel::BinaryFunctionAdapter<cel::Value, absl::lts_20260526::Time, absl::lts_20260526::Duration>::WrapFunction(absl::lts_20260526::AnyInvocable<cel::Value (absl::lts_20260526::Time, absl::lts_20260526::Duration, cel::Function::InvokeContext const&) const>)
Line
Count
Source
437
45.1k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
438
45.1k
    return std::make_unique<BinaryFunctionImpl>(std::move(fn));
439
45.1k
  }
cel::BinaryFunctionAdapter<cel::Value, absl::lts_20260526::Duration, absl::lts_20260526::Time>::WrapFunction(absl::lts_20260526::AnyInvocable<cel::Value (absl::lts_20260526::Duration, absl::lts_20260526::Time, cel::Function::InvokeContext const&) const>)
Line
Count
Source
437
22.5k
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
438
22.5k
    return std::make_unique<BinaryFunctionImpl>(std::move(fn));
439
22.5k
  }
440
441
  template <typename F>
442
  static std::enable_if_t<
443
      std::is_invocable_v<F, U, V, const google::protobuf::DescriptorPool* absl_nonnull,
444
                          google::protobuf::MessageFactory* absl_nonnull,
445
                          google::protobuf::Arena* absl_nonnull>,
446
      std::unique_ptr<cel::Function>>
447
473k
  WrapFunction(F&& function) {
448
473k
    return WrapFunction(
449
473k
        [function = std::forward<F>(function)](
450
473k
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
451
380k
          return function(arg1, arg2, context.descriptor_pool(),
452
380k
                          context.message_factory(), context.arena());
453
380k
        });
_ZZN3cel21BinaryFunctionAdapterIN4absl12lts_202605268StatusOrINS_5ValueEEERKNS_9ListValueES8_E12WrapFunctionIRFNS3_IS6_EES8_S8_PKN6google8protobuf14DescriptorPoolEPNSD_14MessageFactoryEPNSD_5ArenaEEEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S8_S8_SG_SI_SK_EENSN_10unique_ptrINS_8FunctionENSN_14default_deleteISR_EEEEE4typeEOSP_ENKUlS8_S8_RKNSR_13InvokeContextEE_clES8_S8_S10_
Line
Count
Source
450
366k
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
451
366k
          return function(arg1, arg2, context.descriptor_pool(),
452
366k
                          context.message_factory(), context.arena());
453
366k
        });
Unexecuted instantiation: _ZZN3cel21BinaryFunctionAdapterIN4absl12lts_202605268StatusOrINS_5ValueEEERKS4_RKNS_9ListValueEE12WrapFunctionIPFS5_S7_SA_PKN6google8protobuf14DescriptorPoolEPNSE_14MessageFactoryEPNSE_5ArenaEEEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S7_SA_SH_SJ_SL_EENSO_10unique_ptrINS_8FunctionENSO_14default_deleteISS_EEEEE4typeEOSQ_ENKUlS7_SA_RKNSS_13InvokeContextEE_clES7_SA_S11_
Unexecuted instantiation: _ZZN3cel21BinaryFunctionAdapterIN4absl12lts_202605268StatusOrIbEEbRKNS_9ListValueEE12WrapFunctionIRFS4_bS7_PKN6google8protobuf14DescriptorPoolEPNSB_14MessageFactoryEPNSB_5ArenaEEEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_bS7_SE_SG_SI_EENSL_10unique_ptrINS_8FunctionENSL_14default_deleteISP_EEEEE4typeEOSN_ENKUlbS7_RKNSP_13InvokeContextEE_clEbS7_SY_
Unexecuted instantiation: _ZZN3cel21BinaryFunctionAdapterIN4absl12lts_202605268StatusOrIbEElRKNS_9ListValueEE12WrapFunctionIRFS4_lS7_PKN6google8protobuf14DescriptorPoolEPNSB_14MessageFactoryEPNSB_5ArenaEEEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_lS7_SE_SG_SI_EENSL_10unique_ptrINS_8FunctionENSL_14default_deleteISP_EEEEE4typeEOSN_ENKUllS7_RKNSP_13InvokeContextEE_clElS7_SY_
Unexecuted instantiation: _ZZN3cel21BinaryFunctionAdapterIN4absl12lts_202605268StatusOrIbEEmRKNS_9ListValueEE12WrapFunctionIRFS4_mS7_PKN6google8protobuf14DescriptorPoolEPNSB_14MessageFactoryEPNSB_5ArenaEEEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_mS7_SE_SG_SI_EENSL_10unique_ptrINS_8FunctionENSL_14default_deleteISP_EEEEE4typeEOSN_ENKUlmS7_RKNSP_13InvokeContextEE_clEmS7_SY_
Unexecuted instantiation: _ZZN3cel21BinaryFunctionAdapterIN4absl12lts_202605268StatusOrIbEEdRKNS_9ListValueEE12WrapFunctionIRFS4_dS7_PKN6google8protobuf14DescriptorPoolEPNSB_14MessageFactoryEPNSB_5ArenaEEEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_dS7_SE_SG_SI_EENSL_10unique_ptrINS_8FunctionENSL_14default_deleteISP_EEEEE4typeEOSN_ENKUldS7_RKNSP_13InvokeContextEE_clEdS7_SY_
Unexecuted instantiation: _ZZN3cel21BinaryFunctionAdapterIN4absl12lts_202605268StatusOrIbEERKNS_11StringValueERKNS_9ListValueEE12WrapFunctionIRFS4_S7_SA_PKN6google8protobuf14DescriptorPoolEPNSE_14MessageFactoryEPNSE_5ArenaEEEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S7_SA_SH_SJ_SL_EENSO_10unique_ptrINS_8FunctionENSO_14default_deleteISS_EEEEE4typeEOSQ_ENKUlS7_SA_RKNSS_13InvokeContextEE_clES7_SA_S11_
Unexecuted instantiation: _ZZN3cel21BinaryFunctionAdapterIN4absl12lts_202605268StatusOrIbEERKNS_10BytesValueERKNS_9ListValueEE12WrapFunctionIRFS4_S7_SA_PKN6google8protobuf14DescriptorPoolEPNSE_14MessageFactoryEPNSE_5ArenaEEEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S7_SA_SH_SJ_SL_EENSO_10unique_ptrINS_8FunctionENSO_14default_deleteISS_EEEEE4typeEOSQ_ENKUlS7_SA_RKNSS_13InvokeContextEE_clES7_SA_S11_
Unexecuted instantiation: container_membership_functions.cc:_ZZN3cel21BinaryFunctionAdapterIN4absl12lts_202605268StatusOrINS_5ValueEEERKNS_11StringValueERKNS_8MapValueEE12WrapFunctionIRZNS_12_GLOBAL__N_130RegisterMapMembershipFunctionsERNS_16FunctionRegistryERKNS_14RuntimeOptionsEE3$_0EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S8_SB_PKN6google8protobuf14DescriptorPoolEPNSQ_14MessageFactoryEPNSQ_5ArenaEEENSM_10unique_ptrINS_8FunctionENSM_14default_deleteISZ_EEEEE4typeEOSO_ENKUlS8_SB_RKNSZ_13InvokeContextEE_clES8_SB_S18_
Unexecuted instantiation: container_membership_functions.cc:_ZZN3cel21BinaryFunctionAdapterIN4absl12lts_202605268StatusOrINS_5ValueEEEbRKNS_8MapValueEE12WrapFunctionIRZNS_12_GLOBAL__N_130RegisterMapMembershipFunctionsERNS_16FunctionRegistryERKNS_14RuntimeOptionsEE3$_1EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_bS8_PKN6google8protobuf14DescriptorPoolEPNSN_14MessageFactoryEPNSN_5ArenaEEENSJ_10unique_ptrINS_8FunctionENSJ_14default_deleteISW_EEEEE4typeEOSL_ENKUlbS8_RKNSW_13InvokeContextEE_clEbS8_S15_
Unexecuted instantiation: container_membership_functions.cc:_ZZN3cel21BinaryFunctionAdapterIN4absl12lts_202605268StatusOrINS_5ValueEEElRKNS_8MapValueEE12WrapFunctionIRZNS_12_GLOBAL__N_130RegisterMapMembershipFunctionsERNS_16FunctionRegistryERKNS_14RuntimeOptionsEE3$_2EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_lS8_PKN6google8protobuf14DescriptorPoolEPNSN_14MessageFactoryEPNSN_5ArenaEEENSJ_10unique_ptrINS_8FunctionENSJ_14default_deleteISW_EEEEE4typeEOSL_ENKUllS8_RKNSW_13InvokeContextEE_clElS8_S15_
Unexecuted instantiation: container_membership_functions.cc:_ZZN3cel21BinaryFunctionAdapterIN4absl12lts_202605268StatusOrINS_5ValueEEEmRKNS_8MapValueEE12WrapFunctionIRZNS_12_GLOBAL__N_130RegisterMapMembershipFunctionsERNS_16FunctionRegistryERKNS_14RuntimeOptionsEE3$_3EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_mS8_PKN6google8protobuf14DescriptorPoolEPNSN_14MessageFactoryEPNSN_5ArenaEEENSJ_10unique_ptrINS_8FunctionENSJ_14default_deleteISW_EEEEE4typeEOSL_ENKUlmS8_RKNSW_13InvokeContextEE_clEmS8_S15_
Unexecuted instantiation: container_membership_functions.cc:_ZZN3cel21BinaryFunctionAdapterIN4absl12lts_202605268StatusOrINS_5ValueEEEdRKNS_8MapValueEE12WrapFunctionIRZNS_12_GLOBAL__N_130RegisterMapMembershipFunctionsERNS_16FunctionRegistryERKNS_14RuntimeOptionsEE3$_4EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_dS8_PKN6google8protobuf14DescriptorPoolEPNSN_14MessageFactoryEPNSN_5ArenaEEENSJ_10unique_ptrINS_8FunctionENSJ_14default_deleteISW_EEEEE4typeEOSL_ENKUldS8_RKNSW_13InvokeContextEE_clEdS8_S15_
Unexecuted instantiation: _ZZN3cel21BinaryFunctionAdapterIN4absl12lts_202605268StatusOrINS_5ValueEEERKS4_S7_E12WrapFunctionIPFS5_S7_S7_PKN6google8protobuf14DescriptorPoolEPNSB_14MessageFactoryEPNSB_5ArenaEEEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S7_S7_SE_SG_SI_EENSL_10unique_ptrINS_8FunctionENSL_14default_deleteISP_EEEEE4typeEOSN_ENKUlS7_S7_RKNSP_13InvokeContextEE_clES7_S7_SY_
Unexecuted instantiation: _ZZN3cel21BinaryFunctionAdapterINS_5ValueEbbE12WrapFunctionINSt3__18functionIFS1_bbPKN6google8protobuf14DescriptorPoolEPNS7_14MessageFactoryEPNS7_5ArenaEEEEEENS4_9enable_ifIXsr3stdE14is_invocable_vIT_bbSA_SC_SE_EENS4_10unique_ptrINS_8FunctionENS4_14default_deleteISK_EEEEE4typeEOSI_ENKUlbbRKNSK_13InvokeContextEE_clEbbST_
Unexecuted instantiation: _ZZN3cel21BinaryFunctionAdapterINS_5ValueEllE12WrapFunctionINSt3__18functionIFS1_llPKN6google8protobuf14DescriptorPoolEPNS7_14MessageFactoryEPNS7_5ArenaEEEEEENS4_9enable_ifIXsr3stdE14is_invocable_vIT_llSA_SC_SE_EENS4_10unique_ptrINS_8FunctionENS4_14default_deleteISK_EEEEE4typeEOSI_ENKUlllRKNSK_13InvokeContextEE_clEllST_
Unexecuted instantiation: _ZZN3cel21BinaryFunctionAdapterINS_5ValueEmmE12WrapFunctionINSt3__18functionIFS1_mmPKN6google8protobuf14DescriptorPoolEPNS7_14MessageFactoryEPNS7_5ArenaEEEEEENS4_9enable_ifIXsr3stdE14is_invocable_vIT_mmSA_SC_SE_EENS4_10unique_ptrINS_8FunctionENS4_14default_deleteISK_EEEEE4typeEOSI_ENKUlmmRKNSK_13InvokeContextEE_clEmmST_
Unexecuted instantiation: _ZZN3cel21BinaryFunctionAdapterINS_5ValueEddE12WrapFunctionINSt3__18functionIFS1_ddPKN6google8protobuf14DescriptorPoolEPNS7_14MessageFactoryEPNS7_5ArenaEEEEEENS4_9enable_ifIXsr3stdE14is_invocable_vIT_ddSA_SC_SE_EENS4_10unique_ptrINS_8FunctionENS4_14default_deleteISK_EEEEE4typeEOSI_ENKUlddRKNSK_13InvokeContextEE_clEddST_
Unexecuted instantiation: _ZZN3cel21BinaryFunctionAdapterINS_5ValueERKNS_11StringValueES4_E12WrapFunctionINSt3__18functionIFS1_S4_S4_PKN6google8protobuf14DescriptorPoolEPNSA_14MessageFactoryEPNSA_5ArenaEEEEEENS7_9enable_ifIXsr3stdE14is_invocable_vIT_S4_S4_SD_SF_SH_EENS7_10unique_ptrINS_8FunctionENS7_14default_deleteISN_EEEEE4typeEOSL_ENKUlS4_S4_RKNSN_13InvokeContextEE_clES4_S4_SW_
Unexecuted instantiation: _ZZN3cel21BinaryFunctionAdapterINS_5ValueERKNS_10BytesValueES4_E12WrapFunctionINSt3__18functionIFS1_S4_S4_PKN6google8protobuf14DescriptorPoolEPNSA_14MessageFactoryEPNSA_5ArenaEEEEEENS7_9enable_ifIXsr3stdE14is_invocable_vIT_S4_S4_SD_SF_SH_EENS7_10unique_ptrINS_8FunctionENS7_14default_deleteISN_EEEEE4typeEOSL_ENKUlS4_S4_RKNSN_13InvokeContextEE_clES4_S4_SW_
Unexecuted instantiation: _ZZN3cel21BinaryFunctionAdapterINS_5ValueEN4absl12lts_202605268DurationES4_E12WrapFunctionINSt3__18functionIFS1_S4_S4_PKN6google8protobuf14DescriptorPoolEPNSA_14MessageFactoryEPNSA_5ArenaEEEEEENS7_9enable_ifIXsr3stdE14is_invocable_vIT_S4_S4_SD_SF_SH_EENS7_10unique_ptrINS_8FunctionENS7_14default_deleteISN_EEEEE4typeEOSL_ENKUlS4_S4_RKNSN_13InvokeContextEE_clES4_S4_SW_
Unexecuted instantiation: _ZZN3cel21BinaryFunctionAdapterINS_5ValueEN4absl12lts_202605264TimeES4_E12WrapFunctionINSt3__18functionIFS1_S4_S4_PKN6google8protobuf14DescriptorPoolEPNSA_14MessageFactoryEPNSA_5ArenaEEEEEENS7_9enable_ifIXsr3stdE14is_invocable_vIT_S4_S4_SD_SF_SH_EENS7_10unique_ptrINS_8FunctionENS7_14default_deleteISN_EEEEE4typeEOSL_ENKUlS4_S4_RKNSN_13InvokeContextEE_clES4_S4_SW_
Unexecuted instantiation: _ZZN3cel21BinaryFunctionAdapterINS_5ValueERKNS_9NullValueES4_E12WrapFunctionINSt3__18functionIFS1_S4_S4_PKN6google8protobuf14DescriptorPoolEPNSA_14MessageFactoryEPNSA_5ArenaEEEEEENS7_9enable_ifIXsr3stdE14is_invocable_vIT_S4_S4_SD_SF_SH_EENS7_10unique_ptrINS_8FunctionENS7_14default_deleteISN_EEEEE4typeEOSL_ENKUlS4_S4_RKNSN_13InvokeContextEE_clES4_S4_SW_
Unexecuted instantiation: _ZZN3cel21BinaryFunctionAdapterINS_5ValueERKNS_9TypeValueES4_E12WrapFunctionINSt3__18functionIFS1_S4_S4_PKN6google8protobuf14DescriptorPoolEPNSA_14MessageFactoryEPNSA_5ArenaEEEEEENS7_9enable_ifIXsr3stdE14is_invocable_vIT_S4_S4_SD_SF_SH_EENS7_10unique_ptrINS_8FunctionENS7_14default_deleteISN_EEEEE4typeEOSL_ENKUlS4_S4_RKNSN_13InvokeContextEE_clES4_S4_SW_
Unexecuted instantiation: equality_functions.cc:_ZZN3cel21BinaryFunctionAdapterIN4absl12lts_202605268StatusOrINS_5ValueEEERKNS_9ListValueES8_E12WrapFunctionIZNS_12_GLOBAL__N_117ComplexInequalityIS8_RNS2_11FunctionRefIFNS3_INSt3__18optionalIbEEEES8_S8_PKN6google8protobuf14DescriptorPoolEPNSJ_14MessageFactoryEPNSJ_5ArenaEEEEEEDaOT0_EUlS8_S8_SM_SO_SQ_E_EENSE_9enable_ifIXsr3stdE14is_invocable_vIT_S8_S8_SM_SO_SQ_EENSE_10unique_ptrINS_8FunctionENSE_14default_deleteIS10_EEEEE4typeEOSY_ENKUlS8_S8_RKNS10_13InvokeContextEE_clES8_S8_S19_
Unexecuted instantiation: equality_functions.cc:_ZZN3cel21BinaryFunctionAdapterIN4absl12lts_202605268StatusOrINS_5ValueEEERKNS_9ListValueES8_E12WrapFunctionIZNS_12_GLOBAL__N_115ComplexEqualityIS8_RNS2_11FunctionRefIFNS3_INSt3__18optionalIbEEEES8_S8_PKN6google8protobuf14DescriptorPoolEPNSJ_14MessageFactoryEPNSJ_5ArenaEEEEEEDaOT0_EUlS8_S8_SM_SO_SQ_E_EENSE_9enable_ifIXsr3stdE14is_invocable_vIT_S8_S8_SM_SO_SQ_EENSE_10unique_ptrINS_8FunctionENSE_14default_deleteIS10_EEEEE4typeEOSY_ENKUlS8_S8_RKNS10_13InvokeContextEE_clES8_S8_S19_
Unexecuted instantiation: equality_functions.cc:_ZZN3cel21BinaryFunctionAdapterIN4absl12lts_202605268StatusOrINS_5ValueEEERKNS_8MapValueES8_E12WrapFunctionIZNS_12_GLOBAL__N_117ComplexInequalityIS8_RNS2_11FunctionRefIFNS3_INSt3__18optionalIbEEEES8_S8_PKN6google8protobuf14DescriptorPoolEPNSJ_14MessageFactoryEPNSJ_5ArenaEEEEEEDaOT0_EUlS8_S8_SM_SO_SQ_E_EENSE_9enable_ifIXsr3stdE14is_invocable_vIT_S8_S8_SM_SO_SQ_EENSE_10unique_ptrINS_8FunctionENSE_14default_deleteIS10_EEEEE4typeEOSY_ENKUlS8_S8_RKNS10_13InvokeContextEE_clES8_S8_S19_
Unexecuted instantiation: equality_functions.cc:_ZZN3cel21BinaryFunctionAdapterIN4absl12lts_202605268StatusOrINS_5ValueEEERKNS_8MapValueES8_E12WrapFunctionIZNS_12_GLOBAL__N_115ComplexEqualityIS8_RNS2_11FunctionRefIFNS3_INSt3__18optionalIbEEEES8_S8_PKN6google8protobuf14DescriptorPoolEPNSJ_14MessageFactoryEPNSJ_5ArenaEEEEEEDaOT0_EUlS8_S8_SM_SO_SQ_E_EENSE_9enable_ifIXsr3stdE14is_invocable_vIT_S8_S8_SM_SO_SQ_EENSE_10unique_ptrINS_8FunctionENSE_14default_deleteIS10_EEEEE4typeEOSY_ENKUlS8_S8_RKNS10_13InvokeContextEE_clES8_S8_S19_
_ZZN3cel21BinaryFunctionAdapterIN4absl12lts_202605268StatusOrINS_11StringValueEEERKS4_S7_E12WrapFunctionIPFS5_S7_S7_PKN6google8protobuf14DescriptorPoolEPNSB_14MessageFactoryEPNSB_5ArenaEEEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S7_S7_SE_SG_SI_EENSL_10unique_ptrINS_8FunctionENSL_14default_deleteISP_EEEEE4typeEOSN_ENKUlS7_S7_RKNSP_13InvokeContextEE_clES7_S7_SY_
Line
Count
Source
450
13.3k
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
451
13.3k
          return function(arg1, arg2, context.descriptor_pool(),
452
13.3k
                          context.message_factory(), context.arena());
453
13.3k
        });
_ZZN3cel21BinaryFunctionAdapterIN4absl12lts_202605268StatusOrINS_10BytesValueEEERKS4_S7_E12WrapFunctionIPFS5_S7_S7_PKN6google8protobuf14DescriptorPoolEPNSB_14MessageFactoryEPNSB_5ArenaEEEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S7_S7_SE_SG_SI_EENSL_10unique_ptrINS_8FunctionENSL_14default_deleteISP_EEEEE4typeEOSN_ENKUlS7_S7_RKNSP_13InvokeContextEE_clES7_S7_SY_
Line
Count
Source
450
473
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
451
473
          return function(arg1, arg2, context.descriptor_pool(),
452
473
                          context.message_factory(), context.arena());
453
473
        });
454
473k
  }
_ZN3cel21BinaryFunctionAdapterIN4absl12lts_202605268StatusOrINS_5ValueEEERKNS_9ListValueES8_E12WrapFunctionIRFNS3_IS6_EES8_S8_PKN6google8protobuf14DescriptorPoolEPNSD_14MessageFactoryEPNSD_5ArenaEEEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S8_S8_SG_SI_SK_EENSN_10unique_ptrINS_8FunctionENSN_14default_deleteISR_EEEEE4typeEOSP_
Line
Count
Source
447
22.5k
  WrapFunction(F&& function) {
448
22.5k
    return WrapFunction(
449
22.5k
        [function = std::forward<F>(function)](
450
22.5k
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
451
22.5k
          return function(arg1, arg2, context.descriptor_pool(),
452
22.5k
                          context.message_factory(), context.arena());
453
22.5k
        });
454
22.5k
  }
_ZN3cel21BinaryFunctionAdapterIN4absl12lts_202605268StatusOrINS_5ValueEEERKS4_RKNS_9ListValueEE12WrapFunctionIPFS5_S7_SA_PKN6google8protobuf14DescriptorPoolEPNSE_14MessageFactoryEPNSE_5ArenaEEEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S7_SA_SH_SJ_SL_EENSO_10unique_ptrINS_8FunctionENSO_14default_deleteISS_EEEEE4typeEOSQ_
Line
Count
Source
447
67.6k
  WrapFunction(F&& function) {
448
67.6k
    return WrapFunction(
449
67.6k
        [function = std::forward<F>(function)](
450
67.6k
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
451
67.6k
          return function(arg1, arg2, context.descriptor_pool(),
452
67.6k
                          context.message_factory(), context.arena());
453
67.6k
        });
454
67.6k
  }
Unexecuted instantiation: _ZN3cel21BinaryFunctionAdapterIN4absl12lts_202605268StatusOrIbEEbRKNS_9ListValueEE12WrapFunctionIRFS4_bS7_PKN6google8protobuf14DescriptorPoolEPNSB_14MessageFactoryEPNSB_5ArenaEEEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_bS7_SE_SG_SI_EENSL_10unique_ptrINS_8FunctionENSL_14default_deleteISP_EEEEE4typeEOSN_
Unexecuted instantiation: _ZN3cel21BinaryFunctionAdapterIN4absl12lts_202605268StatusOrIbEElRKNS_9ListValueEE12WrapFunctionIRFS4_lS7_PKN6google8protobuf14DescriptorPoolEPNSB_14MessageFactoryEPNSB_5ArenaEEEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_lS7_SE_SG_SI_EENSL_10unique_ptrINS_8FunctionENSL_14default_deleteISP_EEEEE4typeEOSN_
Unexecuted instantiation: _ZN3cel21BinaryFunctionAdapterIN4absl12lts_202605268StatusOrIbEEmRKNS_9ListValueEE12WrapFunctionIRFS4_mS7_PKN6google8protobuf14DescriptorPoolEPNSB_14MessageFactoryEPNSB_5ArenaEEEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_mS7_SE_SG_SI_EENSL_10unique_ptrINS_8FunctionENSL_14default_deleteISP_EEEEE4typeEOSN_
Unexecuted instantiation: _ZN3cel21BinaryFunctionAdapterIN4absl12lts_202605268StatusOrIbEEdRKNS_9ListValueEE12WrapFunctionIRFS4_dS7_PKN6google8protobuf14DescriptorPoolEPNSB_14MessageFactoryEPNSB_5ArenaEEEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_dS7_SE_SG_SI_EENSL_10unique_ptrINS_8FunctionENSL_14default_deleteISP_EEEEE4typeEOSN_
Unexecuted instantiation: _ZN3cel21BinaryFunctionAdapterIN4absl12lts_202605268StatusOrIbEERKNS_11StringValueERKNS_9ListValueEE12WrapFunctionIRFS4_S7_SA_PKN6google8protobuf14DescriptorPoolEPNSE_14MessageFactoryEPNSE_5ArenaEEEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S7_SA_SH_SJ_SL_EENSO_10unique_ptrINS_8FunctionENSO_14default_deleteISS_EEEEE4typeEOSQ_
Unexecuted instantiation: _ZN3cel21BinaryFunctionAdapterIN4absl12lts_202605268StatusOrIbEERKNS_10BytesValueERKNS_9ListValueEE12WrapFunctionIRFS4_S7_SA_PKN6google8protobuf14DescriptorPoolEPNSE_14MessageFactoryEPNSE_5ArenaEEEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S7_SA_SH_SJ_SL_EENSO_10unique_ptrINS_8FunctionENSO_14default_deleteISS_EEEEE4typeEOSQ_
container_membership_functions.cc:_ZN3cel21BinaryFunctionAdapterIN4absl12lts_202605268StatusOrINS_5ValueEEERKNS_11StringValueERKNS_8MapValueEE12WrapFunctionIRZNS_12_GLOBAL__N_130RegisterMapMembershipFunctionsERNS_16FunctionRegistryERKNS_14RuntimeOptionsEE3$_0EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S8_SB_PKN6google8protobuf14DescriptorPoolEPNSQ_14MessageFactoryEPNSQ_5ArenaEEENSM_10unique_ptrINS_8FunctionENSM_14default_deleteISZ_EEEEE4typeEOSO_
Line
Count
Source
447
67.6k
  WrapFunction(F&& function) {
448
67.6k
    return WrapFunction(
449
67.6k
        [function = std::forward<F>(function)](
450
67.6k
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
451
67.6k
          return function(arg1, arg2, context.descriptor_pool(),
452
67.6k
                          context.message_factory(), context.arena());
453
67.6k
        });
454
67.6k
  }
container_membership_functions.cc:_ZN3cel21BinaryFunctionAdapterIN4absl12lts_202605268StatusOrINS_5ValueEEEbRKNS_8MapValueEE12WrapFunctionIRZNS_12_GLOBAL__N_130RegisterMapMembershipFunctionsERNS_16FunctionRegistryERKNS_14RuntimeOptionsEE3$_1EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_bS8_PKN6google8protobuf14DescriptorPoolEPNSN_14MessageFactoryEPNSN_5ArenaEEENSJ_10unique_ptrINS_8FunctionENSJ_14default_deleteISW_EEEEE4typeEOSL_
Line
Count
Source
447
67.6k
  WrapFunction(F&& function) {
448
67.6k
    return WrapFunction(
449
67.6k
        [function = std::forward<F>(function)](
450
67.6k
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
451
67.6k
          return function(arg1, arg2, context.descriptor_pool(),
452
67.6k
                          context.message_factory(), context.arena());
453
67.6k
        });
454
67.6k
  }
container_membership_functions.cc:_ZN3cel21BinaryFunctionAdapterIN4absl12lts_202605268StatusOrINS_5ValueEEElRKNS_8MapValueEE12WrapFunctionIRZNS_12_GLOBAL__N_130RegisterMapMembershipFunctionsERNS_16FunctionRegistryERKNS_14RuntimeOptionsEE3$_2EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_lS8_PKN6google8protobuf14DescriptorPoolEPNSN_14MessageFactoryEPNSN_5ArenaEEENSJ_10unique_ptrINS_8FunctionENSJ_14default_deleteISW_EEEEE4typeEOSL_
Line
Count
Source
447
67.6k
  WrapFunction(F&& function) {
448
67.6k
    return WrapFunction(
449
67.6k
        [function = std::forward<F>(function)](
450
67.6k
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
451
67.6k
          return function(arg1, arg2, context.descriptor_pool(),
452
67.6k
                          context.message_factory(), context.arena());
453
67.6k
        });
454
67.6k
  }
container_membership_functions.cc:_ZN3cel21BinaryFunctionAdapterIN4absl12lts_202605268StatusOrINS_5ValueEEEmRKNS_8MapValueEE12WrapFunctionIRZNS_12_GLOBAL__N_130RegisterMapMembershipFunctionsERNS_16FunctionRegistryERKNS_14RuntimeOptionsEE3$_3EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_mS8_PKN6google8protobuf14DescriptorPoolEPNSN_14MessageFactoryEPNSN_5ArenaEEENSJ_10unique_ptrINS_8FunctionENSJ_14default_deleteISW_EEEEE4typeEOSL_
Line
Count
Source
447
67.6k
  WrapFunction(F&& function) {
448
67.6k
    return WrapFunction(
449
67.6k
        [function = std::forward<F>(function)](
450
67.6k
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
451
67.6k
          return function(arg1, arg2, context.descriptor_pool(),
452
67.6k
                          context.message_factory(), context.arena());
453
67.6k
        });
454
67.6k
  }
container_membership_functions.cc:_ZN3cel21BinaryFunctionAdapterIN4absl12lts_202605268StatusOrINS_5ValueEEEdRKNS_8MapValueEE12WrapFunctionIRZNS_12_GLOBAL__N_130RegisterMapMembershipFunctionsERNS_16FunctionRegistryERKNS_14RuntimeOptionsEE3$_4EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_dS8_PKN6google8protobuf14DescriptorPoolEPNSN_14MessageFactoryEPNSN_5ArenaEEENSJ_10unique_ptrINS_8FunctionENSJ_14default_deleteISW_EEEEE4typeEOSL_
Line
Count
Source
447
67.6k
  WrapFunction(F&& function) {
448
67.6k
    return WrapFunction(
449
67.6k
        [function = std::forward<F>(function)](
450
67.6k
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
451
67.6k
          return function(arg1, arg2, context.descriptor_pool(),
452
67.6k
                          context.message_factory(), context.arena());
453
67.6k
        });
454
67.6k
  }
Unexecuted instantiation: _ZN3cel21BinaryFunctionAdapterIN4absl12lts_202605268StatusOrINS_5ValueEEERKS4_S7_E12WrapFunctionIPFS5_S7_S7_PKN6google8protobuf14DescriptorPoolEPNSB_14MessageFactoryEPNSB_5ArenaEEEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S7_S7_SE_SG_SI_EENSL_10unique_ptrINS_8FunctionENSL_14default_deleteISP_EEEEE4typeEOSN_
Unexecuted instantiation: _ZN3cel21BinaryFunctionAdapterINS_5ValueEbbE12WrapFunctionINSt3__18functionIFS1_bbPKN6google8protobuf14DescriptorPoolEPNS7_14MessageFactoryEPNS7_5ArenaEEEEEENS4_9enable_ifIXsr3stdE14is_invocable_vIT_bbSA_SC_SE_EENS4_10unique_ptrINS_8FunctionENS4_14default_deleteISK_EEEEE4typeEOSI_
Unexecuted instantiation: _ZN3cel21BinaryFunctionAdapterINS_5ValueEllE12WrapFunctionINSt3__18functionIFS1_llPKN6google8protobuf14DescriptorPoolEPNS7_14MessageFactoryEPNS7_5ArenaEEEEEENS4_9enable_ifIXsr3stdE14is_invocable_vIT_llSA_SC_SE_EENS4_10unique_ptrINS_8FunctionENS4_14default_deleteISK_EEEEE4typeEOSI_
Unexecuted instantiation: _ZN3cel21BinaryFunctionAdapterINS_5ValueEmmE12WrapFunctionINSt3__18functionIFS1_mmPKN6google8protobuf14DescriptorPoolEPNS7_14MessageFactoryEPNS7_5ArenaEEEEEENS4_9enable_ifIXsr3stdE14is_invocable_vIT_mmSA_SC_SE_EENS4_10unique_ptrINS_8FunctionENS4_14default_deleteISK_EEEEE4typeEOSI_
Unexecuted instantiation: _ZN3cel21BinaryFunctionAdapterINS_5ValueEddE12WrapFunctionINSt3__18functionIFS1_ddPKN6google8protobuf14DescriptorPoolEPNS7_14MessageFactoryEPNS7_5ArenaEEEEEENS4_9enable_ifIXsr3stdE14is_invocable_vIT_ddSA_SC_SE_EENS4_10unique_ptrINS_8FunctionENS4_14default_deleteISK_EEEEE4typeEOSI_
Unexecuted instantiation: _ZN3cel21BinaryFunctionAdapterINS_5ValueERKNS_11StringValueES4_E12WrapFunctionINSt3__18functionIFS1_S4_S4_PKN6google8protobuf14DescriptorPoolEPNSA_14MessageFactoryEPNSA_5ArenaEEEEEENS7_9enable_ifIXsr3stdE14is_invocable_vIT_S4_S4_SD_SF_SH_EENS7_10unique_ptrINS_8FunctionENS7_14default_deleteISN_EEEEE4typeEOSL_
Unexecuted instantiation: _ZN3cel21BinaryFunctionAdapterINS_5ValueERKNS_10BytesValueES4_E12WrapFunctionINSt3__18functionIFS1_S4_S4_PKN6google8protobuf14DescriptorPoolEPNSA_14MessageFactoryEPNSA_5ArenaEEEEEENS7_9enable_ifIXsr3stdE14is_invocable_vIT_S4_S4_SD_SF_SH_EENS7_10unique_ptrINS_8FunctionENS7_14default_deleteISN_EEEEE4typeEOSL_
Unexecuted instantiation: _ZN3cel21BinaryFunctionAdapterINS_5ValueEN4absl12lts_202605268DurationES4_E12WrapFunctionINSt3__18functionIFS1_S4_S4_PKN6google8protobuf14DescriptorPoolEPNSA_14MessageFactoryEPNSA_5ArenaEEEEEENS7_9enable_ifIXsr3stdE14is_invocable_vIT_S4_S4_SD_SF_SH_EENS7_10unique_ptrINS_8FunctionENS7_14default_deleteISN_EEEEE4typeEOSL_
Unexecuted instantiation: _ZN3cel21BinaryFunctionAdapterINS_5ValueEN4absl12lts_202605264TimeES4_E12WrapFunctionINSt3__18functionIFS1_S4_S4_PKN6google8protobuf14DescriptorPoolEPNSA_14MessageFactoryEPNSA_5ArenaEEEEEENS7_9enable_ifIXsr3stdE14is_invocable_vIT_S4_S4_SD_SF_SH_EENS7_10unique_ptrINS_8FunctionENS7_14default_deleteISN_EEEEE4typeEOSL_
Unexecuted instantiation: _ZN3cel21BinaryFunctionAdapterINS_5ValueERKNS_9NullValueES4_E12WrapFunctionINSt3__18functionIFS1_S4_S4_PKN6google8protobuf14DescriptorPoolEPNSA_14MessageFactoryEPNSA_5ArenaEEEEEENS7_9enable_ifIXsr3stdE14is_invocable_vIT_S4_S4_SD_SF_SH_EENS7_10unique_ptrINS_8FunctionENS7_14default_deleteISN_EEEEE4typeEOSL_
Unexecuted instantiation: _ZN3cel21BinaryFunctionAdapterINS_5ValueERKNS_9TypeValueES4_E12WrapFunctionINSt3__18functionIFS1_S4_S4_PKN6google8protobuf14DescriptorPoolEPNSA_14MessageFactoryEPNSA_5ArenaEEEEEENS7_9enable_ifIXsr3stdE14is_invocable_vIT_S4_S4_SD_SF_SH_EENS7_10unique_ptrINS_8FunctionENS7_14default_deleteISN_EEEEE4typeEOSL_
Unexecuted instantiation: equality_functions.cc:_ZN3cel21BinaryFunctionAdapterIN4absl12lts_202605268StatusOrINS_5ValueEEERKNS_9ListValueES8_E12WrapFunctionIZNS_12_GLOBAL__N_117ComplexInequalityIS8_RNS2_11FunctionRefIFNS3_INSt3__18optionalIbEEEES8_S8_PKN6google8protobuf14DescriptorPoolEPNSJ_14MessageFactoryEPNSJ_5ArenaEEEEEEDaOT0_EUlS8_S8_SM_SO_SQ_E_EENSE_9enable_ifIXsr3stdE14is_invocable_vIT_S8_S8_SM_SO_SQ_EENSE_10unique_ptrINS_8FunctionENSE_14default_deleteIS10_EEEEE4typeEOSY_
Unexecuted instantiation: equality_functions.cc:_ZN3cel21BinaryFunctionAdapterIN4absl12lts_202605268StatusOrINS_5ValueEEERKNS_9ListValueES8_E12WrapFunctionIZNS_12_GLOBAL__N_115ComplexEqualityIS8_RNS2_11FunctionRefIFNS3_INSt3__18optionalIbEEEES8_S8_PKN6google8protobuf14DescriptorPoolEPNSJ_14MessageFactoryEPNSJ_5ArenaEEEEEEDaOT0_EUlS8_S8_SM_SO_SQ_E_EENSE_9enable_ifIXsr3stdE14is_invocable_vIT_S8_S8_SM_SO_SQ_EENSE_10unique_ptrINS_8FunctionENSE_14default_deleteIS10_EEEEE4typeEOSY_
Unexecuted instantiation: equality_functions.cc:_ZN3cel21BinaryFunctionAdapterIN4absl12lts_202605268StatusOrINS_5ValueEEERKNS_8MapValueES8_E12WrapFunctionIZNS_12_GLOBAL__N_117ComplexInequalityIS8_RNS2_11FunctionRefIFNS3_INSt3__18optionalIbEEEES8_S8_PKN6google8protobuf14DescriptorPoolEPNSJ_14MessageFactoryEPNSJ_5ArenaEEEEEEDaOT0_EUlS8_S8_SM_SO_SQ_E_EENSE_9enable_ifIXsr3stdE14is_invocable_vIT_S8_S8_SM_SO_SQ_EENSE_10unique_ptrINS_8FunctionENSE_14default_deleteIS10_EEEEE4typeEOSY_
Unexecuted instantiation: equality_functions.cc:_ZN3cel21BinaryFunctionAdapterIN4absl12lts_202605268StatusOrINS_5ValueEEERKNS_8MapValueES8_E12WrapFunctionIZNS_12_GLOBAL__N_115ComplexEqualityIS8_RNS2_11FunctionRefIFNS3_INSt3__18optionalIbEEEES8_S8_PKN6google8protobuf14DescriptorPoolEPNSJ_14MessageFactoryEPNSJ_5ArenaEEEEEEDaOT0_EUlS8_S8_SM_SO_SQ_E_EENSE_9enable_ifIXsr3stdE14is_invocable_vIT_S8_S8_SM_SO_SQ_EENSE_10unique_ptrINS_8FunctionENSE_14default_deleteIS10_EEEEE4typeEOSY_
_ZN3cel21BinaryFunctionAdapterIN4absl12lts_202605268StatusOrINS_11StringValueEEERKS4_S7_E12WrapFunctionIPFS5_S7_S7_PKN6google8protobuf14DescriptorPoolEPNSB_14MessageFactoryEPNSB_5ArenaEEEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S7_S7_SE_SG_SI_EENSL_10unique_ptrINS_8FunctionENSL_14default_deleteISP_EEEEE4typeEOSN_
Line
Count
Source
447
22.5k
  WrapFunction(F&& function) {
448
22.5k
    return WrapFunction(
449
22.5k
        [function = std::forward<F>(function)](
450
22.5k
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
451
22.5k
          return function(arg1, arg2, context.descriptor_pool(),
452
22.5k
                          context.message_factory(), context.arena());
453
22.5k
        });
454
22.5k
  }
_ZN3cel21BinaryFunctionAdapterIN4absl12lts_202605268StatusOrINS_10BytesValueEEERKS4_S7_E12WrapFunctionIPFS5_S7_S7_PKN6google8protobuf14DescriptorPoolEPNSB_14MessageFactoryEPNSB_5ArenaEEEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S7_S7_SE_SG_SI_EENSL_10unique_ptrINS_8FunctionENSL_14default_deleteISP_EEEEE4typeEOSN_
Line
Count
Source
447
22.5k
  WrapFunction(F&& function) {
448
22.5k
    return WrapFunction(
449
22.5k
        [function = std::forward<F>(function)](
450
22.5k
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
451
22.5k
          return function(arg1, arg2, context.descriptor_pool(),
452
22.5k
                          context.message_factory(), context.arena());
453
22.5k
        });
454
22.5k
  }
455
456
  template <typename F>
457
  static std::enable_if_t<std::is_invocable_v<F, U, V>,
458
                          std::unique_ptr<cel::Function>>
459
1.55M
  WrapFunction(F&& function) {
460
1.55M
    return WrapFunction(
461
1.55M
        [function = std::forward<F>(function)](
462
1.55M
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
463
312k
          return function(arg1, arg2);
464
312k
        });
_ZZN3cel21BinaryFunctionAdapterIbdlE12WrapFunctionIPFbdlEEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_dlEENS5_10unique_ptrINS_8FunctionENS5_14default_deleteIS9_EEEEE4typeEOS7_ENKUldlRKNS9_13InvokeContextEE_clEdlSI_
Line
Count
Source
462
11.8k
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
463
11.8k
          return function(arg1, arg2);
464
11.8k
        });
_ZZN3cel21BinaryFunctionAdapterIbdmE12WrapFunctionIPFbdmEEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_dmEENS5_10unique_ptrINS_8FunctionENS5_14default_deleteIS9_EEEEE4typeEOS7_ENKUldmRKNS9_13InvokeContextEE_clEdmSI_
Line
Count
Source
462
6.85k
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
463
6.85k
          return function(arg1, arg2);
464
6.85k
        });
_ZZN3cel21BinaryFunctionAdapterIbmdE12WrapFunctionIPFbmdEEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_mdEENS5_10unique_ptrINS_8FunctionENS5_14default_deleteIS9_EEEEE4typeEOS7_ENKUlmdRKNS9_13InvokeContextEE_clEmdSI_
Line
Count
Source
462
23.6k
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
463
23.6k
          return function(arg1, arg2);
464
23.6k
        });
_ZZN3cel21BinaryFunctionAdapterIbmlE12WrapFunctionIPFbmlEEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_mlEENS5_10unique_ptrINS_8FunctionENS5_14default_deleteIS9_EEEEE4typeEOS7_ENKUlmlRKNS9_13InvokeContextEE_clEmlSI_
Line
Count
Source
462
20.3k
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
463
20.3k
          return function(arg1, arg2);
464
20.3k
        });
_ZZN3cel21BinaryFunctionAdapterIbldE12WrapFunctionIPFbldEEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_ldEENS5_10unique_ptrINS_8FunctionENS5_14default_deleteIS9_EEEEE4typeEOS7_ENKUlldRKNS9_13InvokeContextEE_clEldSI_
Line
Count
Source
462
68.6k
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
463
68.6k
          return function(arg1, arg2);
464
68.6k
        });
_ZZN3cel21BinaryFunctionAdapterIblmE12WrapFunctionIPFblmEEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_lmEENS5_10unique_ptrINS_8FunctionENS5_14default_deleteIS9_EEEEE4typeEOS7_ENKUllmRKNS9_13InvokeContextEE_clElmSI_
Line
Count
Source
462
13.1k
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
463
13.1k
          return function(arg1, arg2);
464
13.1k
        });
_ZZN3cel21BinaryFunctionAdapterIbbbE12WrapFunctionIRFbbbEEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_bbEENS5_10unique_ptrINS_8FunctionENS5_14default_deleteIS9_EEEEE4typeEOS7_ENKUlbbRKNS9_13InvokeContextEE_clEbbSI_
Line
Count
Source
462
1.48k
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
463
1.48k
          return function(arg1, arg2);
464
1.48k
        });
_ZZN3cel21BinaryFunctionAdapterIbllE12WrapFunctionIRFbllEEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_llEENS5_10unique_ptrINS_8FunctionENS5_14default_deleteIS9_EEEEE4typeEOS7_ENKUlllRKNS9_13InvokeContextEE_clEllSI_
Line
Count
Source
462
142k
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
463
142k
          return function(arg1, arg2);
464
142k
        });
_ZZN3cel21BinaryFunctionAdapterIbmmE12WrapFunctionIRFbmmEEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_mmEENS5_10unique_ptrINS_8FunctionENS5_14default_deleteIS9_EEEEE4typeEOS7_ENKUlmmRKNS9_13InvokeContextEE_clEmmSI_
Line
Count
Source
462
1.15k
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
463
1.15k
          return function(arg1, arg2);
464
1.15k
        });
_ZZN3cel21BinaryFunctionAdapterIbddE12WrapFunctionIRFbddEEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_ddEENS5_10unique_ptrINS_8FunctionENS5_14default_deleteIS9_EEEEE4typeEOS7_ENKUlddRKNS9_13InvokeContextEE_clEddSI_
Line
Count
Source
462
2.39k
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
463
2.39k
          return function(arg1, arg2);
464
2.39k
        });
_ZZN3cel21BinaryFunctionAdapterIbRKNS_11StringValueES3_E12WrapFunctionIRFbS3_S3_EEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S3_S3_EENS8_10unique_ptrINS_8FunctionENS8_14default_deleteISC_EEEEE4typeEOSA_ENKUlS3_S3_RKNSC_13InvokeContextEE_clES3_S3_SL_
Line
Count
Source
462
13.2k
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
463
13.2k
          return function(arg1, arg2);
464
13.2k
        });
_ZZN3cel21BinaryFunctionAdapterIbRKNS_10BytesValueES3_E12WrapFunctionIRFbS3_S3_EEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S3_S3_EENS8_10unique_ptrINS_8FunctionENS8_14default_deleteISC_EEEEE4typeEOSA_ENKUlS3_S3_RKNSC_13InvokeContextEE_clES3_S3_SL_
Line
Count
Source
462
923
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
463
923
          return function(arg1, arg2);
464
923
        });
_ZZN3cel21BinaryFunctionAdapterIbN4absl12lts_202605268DurationES3_E12WrapFunctionIRFbS3_S3_EEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S3_S3_EENS8_10unique_ptrINS_8FunctionENS8_14default_deleteISC_EEEEE4typeEOSA_ENKUlS3_S3_RKNSC_13InvokeContextEE_clES3_S3_SL_
Line
Count
Source
462
2.24k
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
463
2.24k
          return function(arg1, arg2);
464
2.24k
        });
_ZZN3cel21BinaryFunctionAdapterIbN4absl12lts_202605264TimeES3_E12WrapFunctionIRFbS3_S3_EEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S3_S3_EENS8_10unique_ptrINS_8FunctionENS8_14default_deleteISC_EEEEE4typeEOSA_ENKUlS3_S3_RKNSC_13InvokeContextEE_clES3_S3_SL_
Line
Count
Source
462
1.97k
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
463
1.97k
          return function(arg1, arg2);
464
1.97k
        });
Unexecuted instantiation: _ZZN3cel21BinaryFunctionAdapterIN4absl12lts_202605268StatusOrINS_9ListValueEEES4_RKNS_5ValueEE12WrapFunctionIRFS5_S4_S8_EEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S4_S8_EENSD_10unique_ptrINS_8FunctionENSD_14default_deleteISH_EEEEE4typeEOSF_ENKUlS4_S8_RKNSH_13InvokeContextEE_clES4_S8_SQ_
Unexecuted instantiation: equality_functions.cc:_ZZN3cel21BinaryFunctionAdapterIbRKNS_11StructValueERKNS_9NullValueEE12WrapFunctionIZNS_12_GLOBAL__N_136RegisterNullMessageEqualityFunctionsERNS_16FunctionRegistryEE3$_0EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S3_S6_EENSD_10unique_ptrINS_8FunctionENSD_14default_deleteISH_EEEEE4typeEOSF_ENKUlS3_S6_RKNSH_13InvokeContextEE_clES3_S6_SQ_
Unexecuted instantiation: equality_functions.cc:_ZZN3cel21BinaryFunctionAdapterIbRKNS_9NullValueERKNS_11StructValueEE12WrapFunctionIZNS_12_GLOBAL__N_136RegisterNullMessageEqualityFunctionsERNS_16FunctionRegistryEE3$_1EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S3_S6_EENSD_10unique_ptrINS_8FunctionENSD_14default_deleteISH_EEEEE4typeEOSF_ENKUlS3_S6_RKNSH_13InvokeContextEE_clES3_S6_SQ_
Unexecuted instantiation: equality_functions.cc:_ZZN3cel21BinaryFunctionAdapterIbRKNS_11StructValueERKNS_9NullValueEE12WrapFunctionIZNS_12_GLOBAL__N_136RegisterNullMessageEqualityFunctionsERNS_16FunctionRegistryEE3$_2EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S3_S6_EENSD_10unique_ptrINS_8FunctionENSD_14default_deleteISH_EEEEE4typeEOSF_ENKUlS3_S6_RKNSH_13InvokeContextEE_clES3_S6_SQ_
Unexecuted instantiation: equality_functions.cc:_ZZN3cel21BinaryFunctionAdapterIbRKNS_9NullValueERKNS_11StructValueEE12WrapFunctionIZNS_12_GLOBAL__N_136RegisterNullMessageEqualityFunctionsERNS_16FunctionRegistryEE3$_3EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S3_S6_EENSD_10unique_ptrINS_8FunctionENSD_14default_deleteISH_EEEEE4typeEOSF_ENKUlS3_S6_RKNSH_13InvokeContextEE_clES3_S6_SQ_
time_functions.cc:_ZZN3cel21BinaryFunctionAdapterINS_5ValueEN4absl12lts_202605264TimeENS3_8DurationEE12WrapFunctionIZNS_12_GLOBAL__N_140RegisterUncheckedTimeArithmeticFunctionsERNS_16FunctionRegistryEE3$_0EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S4_S5_EENSC_10unique_ptrINS_8FunctionENSC_14default_deleteISG_EEEEE4typeEOSE_ENKUlS4_S5_RKNSG_13InvokeContextEE_clES4_S5_SP_
Line
Count
Source
462
206
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
463
206
          return function(arg1, arg2);
464
206
        });
time_functions.cc:_ZZN3cel21BinaryFunctionAdapterINS_5ValueEN4absl12lts_202605268DurationENS3_4TimeEE12WrapFunctionIZNS_12_GLOBAL__N_140RegisterUncheckedTimeArithmeticFunctionsERNS_16FunctionRegistryEE3$_1EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S4_S5_EENSC_10unique_ptrINS_8FunctionENSC_14default_deleteISG_EEEEE4typeEOSE_ENKUlS4_S5_RKNSG_13InvokeContextEE_clES4_S5_SP_
Line
Count
Source
462
47
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
463
47
          return function(arg1, arg2);
464
47
        });
time_functions.cc:_ZZN3cel21BinaryFunctionAdapterINS_5ValueEN4absl12lts_202605268DurationES4_E12WrapFunctionIZNS_12_GLOBAL__N_140RegisterUncheckedTimeArithmeticFunctionsERNS_16FunctionRegistryEE3$_2EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S4_S4_EENSB_10unique_ptrINS_8FunctionENSB_14default_deleteISF_EEEEE4typeEOSD_ENKUlS4_S4_RKNSF_13InvokeContextEE_clES4_S4_SO_
Line
Count
Source
462
416
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
463
416
          return function(arg1, arg2);
464
416
        });
time_functions.cc:_ZZN3cel21BinaryFunctionAdapterINS_5ValueEN4absl12lts_202605264TimeENS3_8DurationEE12WrapFunctionIZNS_12_GLOBAL__N_140RegisterUncheckedTimeArithmeticFunctionsERNS_16FunctionRegistryEE3$_3EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S4_S5_EENSC_10unique_ptrINS_8FunctionENSC_14default_deleteISG_EEEEE4typeEOSE_ENKUlS4_S5_RKNSG_13InvokeContextEE_clES4_S5_SP_
Line
Count
Source
462
372
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
463
372
          return function(arg1, arg2);
464
372
        });
time_functions.cc:_ZZN3cel21BinaryFunctionAdapterINS_5ValueEN4absl12lts_202605264TimeES4_E12WrapFunctionIZNS_12_GLOBAL__N_140RegisterUncheckedTimeArithmeticFunctionsERNS_16FunctionRegistryEE3$_4EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S4_S4_EENSB_10unique_ptrINS_8FunctionENSB_14default_deleteISF_EEEEE4typeEOSD_ENKUlS4_S4_RKNSF_13InvokeContextEE_clES4_S4_SO_
Line
Count
Source
462
306
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
463
306
          return function(arg1, arg2);
464
306
        });
time_functions.cc:_ZZN3cel21BinaryFunctionAdapterINS_5ValueEN4absl12lts_202605268DurationES4_E12WrapFunctionIZNS_12_GLOBAL__N_140RegisterUncheckedTimeArithmeticFunctionsERNS_16FunctionRegistryEE3$_5EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S4_S4_EENSB_10unique_ptrINS_8FunctionENSB_14default_deleteISF_EEEEE4typeEOSD_ENKUlS4_S4_RKNSF_13InvokeContextEE_clES4_S4_SO_
Line
Count
Source
462
213
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
463
213
          return function(arg1, arg2);
464
213
        });
465
1.55M
  }
_ZN3cel21BinaryFunctionAdapterIbdlE12WrapFunctionIPFbdlEEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_dlEENS5_10unique_ptrINS_8FunctionENS5_14default_deleteIS9_EEEEE4typeEOS7_
Line
Count
Source
459
90.2k
  WrapFunction(F&& function) {
460
90.2k
    return WrapFunction(
461
90.2k
        [function = std::forward<F>(function)](
462
90.2k
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
463
90.2k
          return function(arg1, arg2);
464
90.2k
        });
465
90.2k
  }
_ZN3cel21BinaryFunctionAdapterIbdmE12WrapFunctionIPFbdmEEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_dmEENS5_10unique_ptrINS_8FunctionENS5_14default_deleteIS9_EEEEE4typeEOS7_
Line
Count
Source
459
90.2k
  WrapFunction(F&& function) {
460
90.2k
    return WrapFunction(
461
90.2k
        [function = std::forward<F>(function)](
462
90.2k
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
463
90.2k
          return function(arg1, arg2);
464
90.2k
        });
465
90.2k
  }
_ZN3cel21BinaryFunctionAdapterIbmdE12WrapFunctionIPFbmdEEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_mdEENS5_10unique_ptrINS_8FunctionENS5_14default_deleteIS9_EEEEE4typeEOS7_
Line
Count
Source
459
90.2k
  WrapFunction(F&& function) {
460
90.2k
    return WrapFunction(
461
90.2k
        [function = std::forward<F>(function)](
462
90.2k
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
463
90.2k
          return function(arg1, arg2);
464
90.2k
        });
465
90.2k
  }
_ZN3cel21BinaryFunctionAdapterIbmlE12WrapFunctionIPFbmlEEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_mlEENS5_10unique_ptrINS_8FunctionENS5_14default_deleteIS9_EEEEE4typeEOS7_
Line
Count
Source
459
90.2k
  WrapFunction(F&& function) {
460
90.2k
    return WrapFunction(
461
90.2k
        [function = std::forward<F>(function)](
462
90.2k
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
463
90.2k
          return function(arg1, arg2);
464
90.2k
        });
465
90.2k
  }
_ZN3cel21BinaryFunctionAdapterIbldE12WrapFunctionIPFbldEEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_ldEENS5_10unique_ptrINS_8FunctionENS5_14default_deleteIS9_EEEEE4typeEOS7_
Line
Count
Source
459
90.2k
  WrapFunction(F&& function) {
460
90.2k
    return WrapFunction(
461
90.2k
        [function = std::forward<F>(function)](
462
90.2k
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
463
90.2k
          return function(arg1, arg2);
464
90.2k
        });
465
90.2k
  }
_ZN3cel21BinaryFunctionAdapterIblmE12WrapFunctionIPFblmEEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_lmEENS5_10unique_ptrINS_8FunctionENS5_14default_deleteIS9_EEEEE4typeEOS7_
Line
Count
Source
459
90.2k
  WrapFunction(F&& function) {
460
90.2k
    return WrapFunction(
461
90.2k
        [function = std::forward<F>(function)](
462
90.2k
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
463
90.2k
          return function(arg1, arg2);
464
90.2k
        });
465
90.2k
  }
_ZN3cel21BinaryFunctionAdapterIbbbE12WrapFunctionIRFbbbEEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_bbEENS5_10unique_ptrINS_8FunctionENS5_14default_deleteIS9_EEEEE4typeEOS7_
Line
Count
Source
459
90.2k
  WrapFunction(F&& function) {
460
90.2k
    return WrapFunction(
461
90.2k
        [function = std::forward<F>(function)](
462
90.2k
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
463
90.2k
          return function(arg1, arg2);
464
90.2k
        });
465
90.2k
  }
_ZN3cel21BinaryFunctionAdapterIbllE12WrapFunctionIRFbllEEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_llEENS5_10unique_ptrINS_8FunctionENS5_14default_deleteIS9_EEEEE4typeEOS7_
Line
Count
Source
459
90.2k
  WrapFunction(F&& function) {
460
90.2k
    return WrapFunction(
461
90.2k
        [function = std::forward<F>(function)](
462
90.2k
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
463
90.2k
          return function(arg1, arg2);
464
90.2k
        });
465
90.2k
  }
_ZN3cel21BinaryFunctionAdapterIbmmE12WrapFunctionIRFbmmEEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_mmEENS5_10unique_ptrINS_8FunctionENS5_14default_deleteIS9_EEEEE4typeEOS7_
Line
Count
Source
459
90.2k
  WrapFunction(F&& function) {
460
90.2k
    return WrapFunction(
461
90.2k
        [function = std::forward<F>(function)](
462
90.2k
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
463
90.2k
          return function(arg1, arg2);
464
90.2k
        });
465
90.2k
  }
_ZN3cel21BinaryFunctionAdapterIbddE12WrapFunctionIRFbddEEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_ddEENS5_10unique_ptrINS_8FunctionENS5_14default_deleteIS9_EEEEE4typeEOS7_
Line
Count
Source
459
90.2k
  WrapFunction(F&& function) {
460
90.2k
    return WrapFunction(
461
90.2k
        [function = std::forward<F>(function)](
462
90.2k
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
463
90.2k
          return function(arg1, arg2);
464
90.2k
        });
465
90.2k
  }
_ZN3cel21BinaryFunctionAdapterIbRKNS_11StringValueES3_E12WrapFunctionIRFbS3_S3_EEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S3_S3_EENS8_10unique_ptrINS_8FunctionENS8_14default_deleteISC_EEEEE4typeEOSA_
Line
Count
Source
459
225k
  WrapFunction(F&& function) {
460
225k
    return WrapFunction(
461
225k
        [function = std::forward<F>(function)](
462
225k
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
463
225k
          return function(arg1, arg2);
464
225k
        });
465
225k
  }
_ZN3cel21BinaryFunctionAdapterIbRKNS_10BytesValueES3_E12WrapFunctionIRFbS3_S3_EEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S3_S3_EENS8_10unique_ptrINS_8FunctionENS8_14default_deleteISC_EEEEE4typeEOSA_
Line
Count
Source
459
90.2k
  WrapFunction(F&& function) {
460
90.2k
    return WrapFunction(
461
90.2k
        [function = std::forward<F>(function)](
462
90.2k
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
463
90.2k
          return function(arg1, arg2);
464
90.2k
        });
465
90.2k
  }
_ZN3cel21BinaryFunctionAdapterIbN4absl12lts_202605268DurationES3_E12WrapFunctionIRFbS3_S3_EEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S3_S3_EENS8_10unique_ptrINS_8FunctionENS8_14default_deleteISC_EEEEE4typeEOSA_
Line
Count
Source
459
90.2k
  WrapFunction(F&& function) {
460
90.2k
    return WrapFunction(
461
90.2k
        [function = std::forward<F>(function)](
462
90.2k
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
463
90.2k
          return function(arg1, arg2);
464
90.2k
        });
465
90.2k
  }
_ZN3cel21BinaryFunctionAdapterIbN4absl12lts_202605264TimeES3_E12WrapFunctionIRFbS3_S3_EEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S3_S3_EENS8_10unique_ptrINS_8FunctionENS8_14default_deleteISC_EEEEE4typeEOSA_
Line
Count
Source
459
90.2k
  WrapFunction(F&& function) {
460
90.2k
    return WrapFunction(
461
90.2k
        [function = std::forward<F>(function)](
462
90.2k
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
463
90.2k
          return function(arg1, arg2);
464
90.2k
        });
465
90.2k
  }
_ZN3cel21BinaryFunctionAdapterIN4absl12lts_202605268StatusOrINS_9ListValueEEES4_RKNS_5ValueEE12WrapFunctionIRFS5_S4_S8_EEENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S4_S8_EENSD_10unique_ptrINS_8FunctionENSD_14default_deleteISH_EEEEE4typeEOSF_
Line
Count
Source
459
22.5k
  WrapFunction(F&& function) {
460
22.5k
    return WrapFunction(
461
22.5k
        [function = std::forward<F>(function)](
462
22.5k
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
463
22.5k
          return function(arg1, arg2);
464
22.5k
        });
465
22.5k
  }
Unexecuted instantiation: equality_functions.cc:_ZN3cel21BinaryFunctionAdapterIbRKNS_11StructValueERKNS_9NullValueEE12WrapFunctionIZNS_12_GLOBAL__N_136RegisterNullMessageEqualityFunctionsERNS_16FunctionRegistryEE3$_0EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S3_S6_EENSD_10unique_ptrINS_8FunctionENSD_14default_deleteISH_EEEEE4typeEOSF_
Unexecuted instantiation: equality_functions.cc:_ZN3cel21BinaryFunctionAdapterIbRKNS_9NullValueERKNS_11StructValueEE12WrapFunctionIZNS_12_GLOBAL__N_136RegisterNullMessageEqualityFunctionsERNS_16FunctionRegistryEE3$_1EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S3_S6_EENSD_10unique_ptrINS_8FunctionENSD_14default_deleteISH_EEEEE4typeEOSF_
Unexecuted instantiation: equality_functions.cc:_ZN3cel21BinaryFunctionAdapterIbRKNS_11StructValueERKNS_9NullValueEE12WrapFunctionIZNS_12_GLOBAL__N_136RegisterNullMessageEqualityFunctionsERNS_16FunctionRegistryEE3$_2EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S3_S6_EENSD_10unique_ptrINS_8FunctionENSD_14default_deleteISH_EEEEE4typeEOSF_
Unexecuted instantiation: equality_functions.cc:_ZN3cel21BinaryFunctionAdapterIbRKNS_9NullValueERKNS_11StructValueEE12WrapFunctionIZNS_12_GLOBAL__N_136RegisterNullMessageEqualityFunctionsERNS_16FunctionRegistryEE3$_3EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S3_S6_EENSD_10unique_ptrINS_8FunctionENSD_14default_deleteISH_EEEEE4typeEOSF_
time_functions.cc:_ZN3cel21BinaryFunctionAdapterINS_5ValueEN4absl12lts_202605264TimeENS3_8DurationEE12WrapFunctionIZNS_12_GLOBAL__N_140RegisterUncheckedTimeArithmeticFunctionsERNS_16FunctionRegistryEE3$_0EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S4_S5_EENSC_10unique_ptrINS_8FunctionENSC_14default_deleteISG_EEEEE4typeEOSE_
Line
Count
Source
459
22.5k
  WrapFunction(F&& function) {
460
22.5k
    return WrapFunction(
461
22.5k
        [function = std::forward<F>(function)](
462
22.5k
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
463
22.5k
          return function(arg1, arg2);
464
22.5k
        });
465
22.5k
  }
time_functions.cc:_ZN3cel21BinaryFunctionAdapterINS_5ValueEN4absl12lts_202605268DurationENS3_4TimeEE12WrapFunctionIZNS_12_GLOBAL__N_140RegisterUncheckedTimeArithmeticFunctionsERNS_16FunctionRegistryEE3$_1EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S4_S5_EENSC_10unique_ptrINS_8FunctionENSC_14default_deleteISG_EEEEE4typeEOSE_
Line
Count
Source
459
22.5k
  WrapFunction(F&& function) {
460
22.5k
    return WrapFunction(
461
22.5k
        [function = std::forward<F>(function)](
462
22.5k
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
463
22.5k
          return function(arg1, arg2);
464
22.5k
        });
465
22.5k
  }
time_functions.cc:_ZN3cel21BinaryFunctionAdapterINS_5ValueEN4absl12lts_202605268DurationES4_E12WrapFunctionIZNS_12_GLOBAL__N_140RegisterUncheckedTimeArithmeticFunctionsERNS_16FunctionRegistryEE3$_2EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S4_S4_EENSB_10unique_ptrINS_8FunctionENSB_14default_deleteISF_EEEEE4typeEOSD_
Line
Count
Source
459
22.5k
  WrapFunction(F&& function) {
460
22.5k
    return WrapFunction(
461
22.5k
        [function = std::forward<F>(function)](
462
22.5k
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
463
22.5k
          return function(arg1, arg2);
464
22.5k
        });
465
22.5k
  }
time_functions.cc:_ZN3cel21BinaryFunctionAdapterINS_5ValueEN4absl12lts_202605264TimeENS3_8DurationEE12WrapFunctionIZNS_12_GLOBAL__N_140RegisterUncheckedTimeArithmeticFunctionsERNS_16FunctionRegistryEE3$_3EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S4_S5_EENSC_10unique_ptrINS_8FunctionENSC_14default_deleteISG_EEEEE4typeEOSE_
Line
Count
Source
459
22.5k
  WrapFunction(F&& function) {
460
22.5k
    return WrapFunction(
461
22.5k
        [function = std::forward<F>(function)](
462
22.5k
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
463
22.5k
          return function(arg1, arg2);
464
22.5k
        });
465
22.5k
  }
time_functions.cc:_ZN3cel21BinaryFunctionAdapterINS_5ValueEN4absl12lts_202605264TimeES4_E12WrapFunctionIZNS_12_GLOBAL__N_140RegisterUncheckedTimeArithmeticFunctionsERNS_16FunctionRegistryEE3$_4EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S4_S4_EENSB_10unique_ptrINS_8FunctionENSB_14default_deleteISF_EEEEE4typeEOSD_
Line
Count
Source
459
22.5k
  WrapFunction(F&& function) {
460
22.5k
    return WrapFunction(
461
22.5k
        [function = std::forward<F>(function)](
462
22.5k
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
463
22.5k
          return function(arg1, arg2);
464
22.5k
        });
465
22.5k
  }
time_functions.cc:_ZN3cel21BinaryFunctionAdapterINS_5ValueEN4absl12lts_202605268DurationES4_E12WrapFunctionIZNS_12_GLOBAL__N_140RegisterUncheckedTimeArithmeticFunctionsERNS_16FunctionRegistryEE3$_5EENSt3__19enable_ifIXsr3stdE14is_invocable_vIT_S4_S4_EENSB_10unique_ptrINS_8FunctionENSB_14default_deleteISF_EEEEE4typeEOSD_
Line
Count
Source
459
22.5k
  WrapFunction(F&& function) {
460
22.5k
    return WrapFunction(
461
22.5k
        [function = std::forward<F>(function)](
462
22.5k
            U arg1, V arg2, const Function::InvokeContext& context) -> T {
463
22.5k
          return function(arg1, arg2);
464
22.5k
        });
465
22.5k
  }
466
467
  static FunctionDescriptor CreateDescriptor(absl::string_view name,
468
                                             bool receiver_style,
469
                                             bool is_strict) {
470
    return CreateDescriptor(name, receiver_style,
471
                            {is_strict, /*is_contextual=*/false});
472
  }
473
474
  static FunctionDescriptor CreateDescriptor(
475
      absl::string_view name, bool receiver_style,
476
2.61M
      FunctionDescriptorOptions options = {}) {
477
2.61M
    return FunctionDescriptor(name, receiver_style,
478
2.61M
                              {runtime_internal::AdaptedKind<U>(),
479
2.61M
                               runtime_internal::AdaptedKind<V>()},
480
2.61M
                              options);
481
2.61M
  }
cel::BinaryFunctionAdapter<cel::Value, double, double>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
476
90.2k
      FunctionDescriptorOptions options = {}) {
477
90.2k
    return FunctionDescriptor(name, receiver_style,
478
90.2k
                              {runtime_internal::AdaptedKind<U>(),
479
90.2k
                               runtime_internal::AdaptedKind<V>()},
480
90.2k
                              options);
481
90.2k
  }
cel::BinaryFunctionAdapter<cel::Value, long, long>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
476
112k
      FunctionDescriptorOptions options = {}) {
477
112k
    return FunctionDescriptor(name, receiver_style,
478
112k
                              {runtime_internal::AdaptedKind<U>(),
479
112k
                               runtime_internal::AdaptedKind<V>()},
480
112k
                              options);
481
112k
  }
cel::BinaryFunctionAdapter<cel::Value, unsigned long, unsigned long>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
476
112k
      FunctionDescriptorOptions options = {}) {
477
112k
    return FunctionDescriptor(name, receiver_style,
478
112k
                              {runtime_internal::AdaptedKind<U>(),
479
112k
                               runtime_internal::AdaptedKind<V>()},
480
112k
                              options);
481
112k
  }
cel::BinaryFunctionAdapter<bool, double, long>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
476
90.2k
      FunctionDescriptorOptions options = {}) {
477
90.2k
    return FunctionDescriptor(name, receiver_style,
478
90.2k
                              {runtime_internal::AdaptedKind<U>(),
479
90.2k
                               runtime_internal::AdaptedKind<V>()},
480
90.2k
                              options);
481
90.2k
  }
cel::BinaryFunctionAdapter<bool, double, unsigned long>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
476
90.2k
      FunctionDescriptorOptions options = {}) {
477
90.2k
    return FunctionDescriptor(name, receiver_style,
478
90.2k
                              {runtime_internal::AdaptedKind<U>(),
479
90.2k
                               runtime_internal::AdaptedKind<V>()},
480
90.2k
                              options);
481
90.2k
  }
cel::BinaryFunctionAdapter<bool, unsigned long, double>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
476
90.2k
      FunctionDescriptorOptions options = {}) {
477
90.2k
    return FunctionDescriptor(name, receiver_style,
478
90.2k
                              {runtime_internal::AdaptedKind<U>(),
479
90.2k
                               runtime_internal::AdaptedKind<V>()},
480
90.2k
                              options);
481
90.2k
  }
cel::BinaryFunctionAdapter<bool, unsigned long, long>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
476
90.2k
      FunctionDescriptorOptions options = {}) {
477
90.2k
    return FunctionDescriptor(name, receiver_style,
478
90.2k
                              {runtime_internal::AdaptedKind<U>(),
479
90.2k
                               runtime_internal::AdaptedKind<V>()},
480
90.2k
                              options);
481
90.2k
  }
cel::BinaryFunctionAdapter<bool, long, double>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
476
90.2k
      FunctionDescriptorOptions options = {}) {
477
90.2k
    return FunctionDescriptor(name, receiver_style,
478
90.2k
                              {runtime_internal::AdaptedKind<U>(),
479
90.2k
                               runtime_internal::AdaptedKind<V>()},
480
90.2k
                              options);
481
90.2k
  }
cel::BinaryFunctionAdapter<bool, long, unsigned long>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
476
90.2k
      FunctionDescriptorOptions options = {}) {
477
90.2k
    return FunctionDescriptor(name, receiver_style,
478
90.2k
                              {runtime_internal::AdaptedKind<U>(),
479
90.2k
                               runtime_internal::AdaptedKind<V>()},
480
90.2k
                              options);
481
90.2k
  }
cel::BinaryFunctionAdapter<bool, bool, bool>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
476
90.2k
      FunctionDescriptorOptions options = {}) {
477
90.2k
    return FunctionDescriptor(name, receiver_style,
478
90.2k
                              {runtime_internal::AdaptedKind<U>(),
479
90.2k
                               runtime_internal::AdaptedKind<V>()},
480
90.2k
                              options);
481
90.2k
  }
cel::BinaryFunctionAdapter<bool, long, long>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
476
90.2k
      FunctionDescriptorOptions options = {}) {
477
90.2k
    return FunctionDescriptor(name, receiver_style,
478
90.2k
                              {runtime_internal::AdaptedKind<U>(),
479
90.2k
                               runtime_internal::AdaptedKind<V>()},
480
90.2k
                              options);
481
90.2k
  }
cel::BinaryFunctionAdapter<bool, unsigned long, unsigned long>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
476
90.2k
      FunctionDescriptorOptions options = {}) {
477
90.2k
    return FunctionDescriptor(name, receiver_style,
478
90.2k
                              {runtime_internal::AdaptedKind<U>(),
479
90.2k
                               runtime_internal::AdaptedKind<V>()},
480
90.2k
                              options);
481
90.2k
  }
cel::BinaryFunctionAdapter<bool, double, double>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
476
90.2k
      FunctionDescriptorOptions options = {}) {
477
90.2k
    return FunctionDescriptor(name, receiver_style,
478
90.2k
                              {runtime_internal::AdaptedKind<U>(),
479
90.2k
                               runtime_internal::AdaptedKind<V>()},
480
90.2k
                              options);
481
90.2k
  }
cel::BinaryFunctionAdapter<bool, cel::StringValue const&, cel::StringValue const&>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
476
225k
      FunctionDescriptorOptions options = {}) {
477
225k
    return FunctionDescriptor(name, receiver_style,
478
225k
                              {runtime_internal::AdaptedKind<U>(),
479
225k
                               runtime_internal::AdaptedKind<V>()},
480
225k
                              options);
481
225k
  }
cel::BinaryFunctionAdapter<bool, cel::BytesValue const&, cel::BytesValue const&>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
476
90.2k
      FunctionDescriptorOptions options = {}) {
477
90.2k
    return FunctionDescriptor(name, receiver_style,
478
90.2k
                              {runtime_internal::AdaptedKind<U>(),
479
90.2k
                               runtime_internal::AdaptedKind<V>()},
480
90.2k
                              options);
481
90.2k
  }
cel::BinaryFunctionAdapter<bool, absl::lts_20260526::Duration, absl::lts_20260526::Duration>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
476
90.2k
      FunctionDescriptorOptions options = {}) {
477
90.2k
    return FunctionDescriptor(name, receiver_style,
478
90.2k
                              {runtime_internal::AdaptedKind<U>(),
479
90.2k
                               runtime_internal::AdaptedKind<V>()},
480
90.2k
                              options);
481
90.2k
  }
cel::BinaryFunctionAdapter<bool, absl::lts_20260526::Time, absl::lts_20260526::Time>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
476
90.2k
      FunctionDescriptorOptions options = {}) {
477
90.2k
    return FunctionDescriptor(name, receiver_style,
478
90.2k
                              {runtime_internal::AdaptedKind<U>(),
479
90.2k
                               runtime_internal::AdaptedKind<V>()},
480
90.2k
                              options);
481
90.2k
  }
cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::Value>, cel::ListValue const&, cel::ListValue const&>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
476
22.5k
      FunctionDescriptorOptions options = {}) {
477
22.5k
    return FunctionDescriptor(name, receiver_style,
478
22.5k
                              {runtime_internal::AdaptedKind<U>(),
479
22.5k
                               runtime_internal::AdaptedKind<V>()},
480
22.5k
                              options);
481
22.5k
  }
cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::ListValue>, cel::ListValue, cel::Value const&>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
476
22.5k
      FunctionDescriptorOptions options = {}) {
477
22.5k
    return FunctionDescriptor(name, receiver_style,
478
22.5k
                              {runtime_internal::AdaptedKind<U>(),
479
22.5k
                               runtime_internal::AdaptedKind<V>()},
480
22.5k
                              options);
481
22.5k
  }
cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::Value>, cel::Value const&, cel::ListValue const&>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
476
67.6k
      FunctionDescriptorOptions options = {}) {
477
67.6k
    return FunctionDescriptor(name, receiver_style,
478
67.6k
                              {runtime_internal::AdaptedKind<U>(),
479
67.6k
                               runtime_internal::AdaptedKind<V>()},
480
67.6k
                              options);
481
67.6k
  }
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<bool>, bool, cel::ListValue const&>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<bool>, long, cel::ListValue const&>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<bool>, unsigned long, cel::ListValue const&>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<bool>, double, cel::ListValue const&>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<bool>, cel::StringValue const&, cel::ListValue const&>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<bool>, cel::BytesValue const&, cel::ListValue const&>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::Value>, cel::StringValue const&, cel::MapValue const&>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
476
67.6k
      FunctionDescriptorOptions options = {}) {
477
67.6k
    return FunctionDescriptor(name, receiver_style,
478
67.6k
                              {runtime_internal::AdaptedKind<U>(),
479
67.6k
                               runtime_internal::AdaptedKind<V>()},
480
67.6k
                              options);
481
67.6k
  }
cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::Value>, bool, cel::MapValue const&>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
476
67.6k
      FunctionDescriptorOptions options = {}) {
477
67.6k
    return FunctionDescriptor(name, receiver_style,
478
67.6k
                              {runtime_internal::AdaptedKind<U>(),
479
67.6k
                               runtime_internal::AdaptedKind<V>()},
480
67.6k
                              options);
481
67.6k
  }
cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::Value>, long, cel::MapValue const&>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
476
67.6k
      FunctionDescriptorOptions options = {}) {
477
67.6k
    return FunctionDescriptor(name, receiver_style,
478
67.6k
                              {runtime_internal::AdaptedKind<U>(),
479
67.6k
                               runtime_internal::AdaptedKind<V>()},
480
67.6k
                              options);
481
67.6k
  }
cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::Value>, unsigned long, cel::MapValue const&>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
476
67.6k
      FunctionDescriptorOptions options = {}) {
477
67.6k
    return FunctionDescriptor(name, receiver_style,
478
67.6k
                              {runtime_internal::AdaptedKind<U>(),
479
67.6k
                               runtime_internal::AdaptedKind<V>()},
480
67.6k
                              options);
481
67.6k
  }
cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::Value>, double, cel::MapValue const&>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
476
67.6k
      FunctionDescriptorOptions options = {}) {
477
67.6k
    return FunctionDescriptor(name, receiver_style,
478
67.6k
                              {runtime_internal::AdaptedKind<U>(),
479
67.6k
                               runtime_internal::AdaptedKind<V>()},
480
67.6k
                              options);
481
67.6k
  }
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::Value>, cel::Value const&, cel::Value const&>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Unexecuted instantiation: cel::BinaryFunctionAdapter<cel::Value, bool, bool>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
cel::BinaryFunctionAdapter<cel::Value, cel::StringValue const&, cel::StringValue const&>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
476
45.1k
      FunctionDescriptorOptions options = {}) {
477
45.1k
    return FunctionDescriptor(name, receiver_style,
478
45.1k
                              {runtime_internal::AdaptedKind<U>(),
479
45.1k
                               runtime_internal::AdaptedKind<V>()},
480
45.1k
                              options);
481
45.1k
  }
Unexecuted instantiation: cel::BinaryFunctionAdapter<cel::Value, cel::BytesValue const&, cel::BytesValue const&>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
cel::BinaryFunctionAdapter<cel::Value, absl::lts_20260526::Duration, absl::lts_20260526::Duration>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
476
45.1k
      FunctionDescriptorOptions options = {}) {
477
45.1k
    return FunctionDescriptor(name, receiver_style,
478
45.1k
                              {runtime_internal::AdaptedKind<U>(),
479
45.1k
                               runtime_internal::AdaptedKind<V>()},
480
45.1k
                              options);
481
45.1k
  }
cel::BinaryFunctionAdapter<cel::Value, absl::lts_20260526::Time, absl::lts_20260526::Time>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
476
22.5k
      FunctionDescriptorOptions options = {}) {
477
22.5k
    return FunctionDescriptor(name, receiver_style,
478
22.5k
                              {runtime_internal::AdaptedKind<U>(),
479
22.5k
                               runtime_internal::AdaptedKind<V>()},
480
22.5k
                              options);
481
22.5k
  }
Unexecuted instantiation: cel::BinaryFunctionAdapter<cel::Value, cel::NullValue const&, cel::NullValue const&>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Unexecuted instantiation: cel::BinaryFunctionAdapter<cel::Value, cel::TypeValue const&, cel::TypeValue const&>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::Value>, cel::MapValue const&, cel::MapValue const&>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Unexecuted instantiation: cel::BinaryFunctionAdapter<bool, cel::StructValue const&, cel::NullValue const&>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Unexecuted instantiation: cel::BinaryFunctionAdapter<bool, cel::NullValue const&, cel::StructValue const&>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::StringValue>, cel::StringValue const&, cel::StringValue const&>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
476
22.5k
      FunctionDescriptorOptions options = {}) {
477
22.5k
    return FunctionDescriptor(name, receiver_style,
478
22.5k
                              {runtime_internal::AdaptedKind<U>(),
479
22.5k
                               runtime_internal::AdaptedKind<V>()},
480
22.5k
                              options);
481
22.5k
  }
cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::BytesValue>, cel::BytesValue const&, cel::BytesValue const&>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
476
22.5k
      FunctionDescriptorOptions options = {}) {
477
22.5k
    return FunctionDescriptor(name, receiver_style,
478
22.5k
                              {runtime_internal::AdaptedKind<U>(),
479
22.5k
                               runtime_internal::AdaptedKind<V>()},
480
22.5k
                              options);
481
22.5k
  }
cel::BinaryFunctionAdapter<cel::Value, absl::lts_20260526::Time, cel::StringValue const&>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
476
225k
      FunctionDescriptorOptions options = {}) {
477
225k
    return FunctionDescriptor(name, receiver_style,
478
225k
                              {runtime_internal::AdaptedKind<U>(),
479
225k
                               runtime_internal::AdaptedKind<V>()},
480
225k
                              options);
481
225k
  }
cel::BinaryFunctionAdapter<cel::Value, absl::lts_20260526::Time, absl::lts_20260526::Duration>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
476
45.1k
      FunctionDescriptorOptions options = {}) {
477
45.1k
    return FunctionDescriptor(name, receiver_style,
478
45.1k
                              {runtime_internal::AdaptedKind<U>(),
479
45.1k
                               runtime_internal::AdaptedKind<V>()},
480
45.1k
                              options);
481
45.1k
  }
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::Value>, absl::lts_20260526::Duration, absl::lts_20260526::Time>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::Value>, absl::lts_20260526::Duration, absl::lts_20260526::Duration>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::Value>, absl::lts_20260526::Time, absl::lts_20260526::Duration>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::Value>, absl::lts_20260526::Time, absl::lts_20260526::Time>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
cel::BinaryFunctionAdapter<cel::Value, absl::lts_20260526::Duration, absl::lts_20260526::Time>::CreateDescriptor(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, cel::FunctionDescriptorOptions)
Line
Count
Source
476
22.5k
      FunctionDescriptorOptions options = {}) {
477
22.5k
    return FunctionDescriptor(name, receiver_style,
478
22.5k
                              {runtime_internal::AdaptedKind<U>(),
479
22.5k
                               runtime_internal::AdaptedKind<V>()},
480
22.5k
                              options);
481
22.5k
  }
482
483
 private:
484
  class BinaryFunctionImpl : public Function {
485
   public:
486
2.61M
    explicit BinaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::BinaryFunctionAdapter<cel::Value, double, double>::BinaryFunctionImpl::BinaryFunctionImpl(absl::lts_20260526::AnyInvocable<cel::Value (double, double, cel::Function::InvokeContext const&) const>)
Line
Count
Source
486
90.2k
    explicit BinaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::BinaryFunctionAdapter<cel::Value, long, long>::BinaryFunctionImpl::BinaryFunctionImpl(absl::lts_20260526::AnyInvocable<cel::Value (long, long, cel::Function::InvokeContext const&) const>)
Line
Count
Source
486
112k
    explicit BinaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::BinaryFunctionAdapter<cel::Value, unsigned long, unsigned long>::BinaryFunctionImpl::BinaryFunctionImpl(absl::lts_20260526::AnyInvocable<cel::Value (unsigned long, unsigned long, cel::Function::InvokeContext const&) const>)
Line
Count
Source
486
112k
    explicit BinaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::BinaryFunctionAdapter<bool, double, long>::BinaryFunctionImpl::BinaryFunctionImpl(absl::lts_20260526::AnyInvocable<bool (double, long, cel::Function::InvokeContext const&) const>)
Line
Count
Source
486
90.2k
    explicit BinaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::BinaryFunctionAdapter<bool, double, unsigned long>::BinaryFunctionImpl::BinaryFunctionImpl(absl::lts_20260526::AnyInvocable<bool (double, unsigned long, cel::Function::InvokeContext const&) const>)
Line
Count
Source
486
90.2k
    explicit BinaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::BinaryFunctionAdapter<bool, unsigned long, double>::BinaryFunctionImpl::BinaryFunctionImpl(absl::lts_20260526::AnyInvocable<bool (unsigned long, double, cel::Function::InvokeContext const&) const>)
Line
Count
Source
486
90.2k
    explicit BinaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::BinaryFunctionAdapter<bool, unsigned long, long>::BinaryFunctionImpl::BinaryFunctionImpl(absl::lts_20260526::AnyInvocable<bool (unsigned long, long, cel::Function::InvokeContext const&) const>)
Line
Count
Source
486
90.2k
    explicit BinaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::BinaryFunctionAdapter<bool, long, double>::BinaryFunctionImpl::BinaryFunctionImpl(absl::lts_20260526::AnyInvocable<bool (long, double, cel::Function::InvokeContext const&) const>)
Line
Count
Source
486
90.2k
    explicit BinaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::BinaryFunctionAdapter<bool, long, unsigned long>::BinaryFunctionImpl::BinaryFunctionImpl(absl::lts_20260526::AnyInvocable<bool (long, unsigned long, cel::Function::InvokeContext const&) const>)
Line
Count
Source
486
90.2k
    explicit BinaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::BinaryFunctionAdapter<bool, bool, bool>::BinaryFunctionImpl::BinaryFunctionImpl(absl::lts_20260526::AnyInvocable<bool (bool, bool, cel::Function::InvokeContext const&) const>)
Line
Count
Source
486
90.2k
    explicit BinaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::BinaryFunctionAdapter<bool, long, long>::BinaryFunctionImpl::BinaryFunctionImpl(absl::lts_20260526::AnyInvocable<bool (long, long, cel::Function::InvokeContext const&) const>)
Line
Count
Source
486
90.2k
    explicit BinaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::BinaryFunctionAdapter<bool, unsigned long, unsigned long>::BinaryFunctionImpl::BinaryFunctionImpl(absl::lts_20260526::AnyInvocable<bool (unsigned long, unsigned long, cel::Function::InvokeContext const&) const>)
Line
Count
Source
486
90.2k
    explicit BinaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::BinaryFunctionAdapter<bool, double, double>::BinaryFunctionImpl::BinaryFunctionImpl(absl::lts_20260526::AnyInvocable<bool (double, double, cel::Function::InvokeContext const&) const>)
Line
Count
Source
486
90.2k
    explicit BinaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::BinaryFunctionAdapter<bool, cel::StringValue const&, cel::StringValue const&>::BinaryFunctionImpl::BinaryFunctionImpl(absl::lts_20260526::AnyInvocable<bool (cel::StringValue const&, cel::StringValue const&, cel::Function::InvokeContext const&) const>)
Line
Count
Source
486
225k
    explicit BinaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::BinaryFunctionAdapter<bool, cel::BytesValue const&, cel::BytesValue const&>::BinaryFunctionImpl::BinaryFunctionImpl(absl::lts_20260526::AnyInvocable<bool (cel::BytesValue const&, cel::BytesValue const&, cel::Function::InvokeContext const&) const>)
Line
Count
Source
486
90.2k
    explicit BinaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::BinaryFunctionAdapter<bool, absl::lts_20260526::Duration, absl::lts_20260526::Duration>::BinaryFunctionImpl::BinaryFunctionImpl(absl::lts_20260526::AnyInvocable<bool (absl::lts_20260526::Duration, absl::lts_20260526::Duration, cel::Function::InvokeContext const&) const>)
Line
Count
Source
486
90.2k
    explicit BinaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::BinaryFunctionAdapter<bool, absl::lts_20260526::Time, absl::lts_20260526::Time>::BinaryFunctionImpl::BinaryFunctionImpl(absl::lts_20260526::AnyInvocable<bool (absl::lts_20260526::Time, absl::lts_20260526::Time, cel::Function::InvokeContext const&) const>)
Line
Count
Source
486
90.2k
    explicit BinaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::Value>, cel::ListValue const&, cel::ListValue const&>::BinaryFunctionImpl::BinaryFunctionImpl(absl::lts_20260526::AnyInvocable<absl::lts_20260526::StatusOr<cel::Value> (cel::ListValue const&, cel::ListValue const&, cel::Function::InvokeContext const&) const>)
Line
Count
Source
486
22.5k
    explicit BinaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::ListValue>, cel::ListValue, cel::Value const&>::BinaryFunctionImpl::BinaryFunctionImpl(absl::lts_20260526::AnyInvocable<absl::lts_20260526::StatusOr<cel::ListValue> (cel::ListValue, cel::Value const&, cel::Function::InvokeContext const&) const>)
Line
Count
Source
486
22.5k
    explicit BinaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::Value>, cel::Value const&, cel::ListValue const&>::BinaryFunctionImpl::BinaryFunctionImpl(absl::lts_20260526::AnyInvocable<absl::lts_20260526::StatusOr<cel::Value> (cel::Value const&, cel::ListValue const&, cel::Function::InvokeContext const&) const>)
Line
Count
Source
486
67.6k
    explicit BinaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<bool>, bool, cel::ListValue const&>::BinaryFunctionImpl::BinaryFunctionImpl(absl::lts_20260526::AnyInvocable<absl::lts_20260526::StatusOr<bool> (bool, cel::ListValue const&, cel::Function::InvokeContext const&) const>)
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<bool>, long, cel::ListValue const&>::BinaryFunctionImpl::BinaryFunctionImpl(absl::lts_20260526::AnyInvocable<absl::lts_20260526::StatusOr<bool> (long, cel::ListValue const&, cel::Function::InvokeContext const&) const>)
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<bool>, unsigned long, cel::ListValue const&>::BinaryFunctionImpl::BinaryFunctionImpl(absl::lts_20260526::AnyInvocable<absl::lts_20260526::StatusOr<bool> (unsigned long, cel::ListValue const&, cel::Function::InvokeContext const&) const>)
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<bool>, double, cel::ListValue const&>::BinaryFunctionImpl::BinaryFunctionImpl(absl::lts_20260526::AnyInvocable<absl::lts_20260526::StatusOr<bool> (double, cel::ListValue const&, cel::Function::InvokeContext const&) const>)
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<bool>, cel::StringValue const&, cel::ListValue const&>::BinaryFunctionImpl::BinaryFunctionImpl(absl::lts_20260526::AnyInvocable<absl::lts_20260526::StatusOr<bool> (cel::StringValue const&, cel::ListValue const&, cel::Function::InvokeContext const&) const>)
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<bool>, cel::BytesValue const&, cel::ListValue const&>::BinaryFunctionImpl::BinaryFunctionImpl(absl::lts_20260526::AnyInvocable<absl::lts_20260526::StatusOr<bool> (cel::BytesValue const&, cel::ListValue const&, cel::Function::InvokeContext const&) const>)
cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::Value>, cel::StringValue const&, cel::MapValue const&>::BinaryFunctionImpl::BinaryFunctionImpl(absl::lts_20260526::AnyInvocable<absl::lts_20260526::StatusOr<cel::Value> (cel::StringValue const&, cel::MapValue const&, cel::Function::InvokeContext const&) const>)
Line
Count
Source
486
67.6k
    explicit BinaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::Value>, bool, cel::MapValue const&>::BinaryFunctionImpl::BinaryFunctionImpl(absl::lts_20260526::AnyInvocable<absl::lts_20260526::StatusOr<cel::Value> (bool, cel::MapValue const&, cel::Function::InvokeContext const&) const>)
Line
Count
Source
486
67.6k
    explicit BinaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::Value>, long, cel::MapValue const&>::BinaryFunctionImpl::BinaryFunctionImpl(absl::lts_20260526::AnyInvocable<absl::lts_20260526::StatusOr<cel::Value> (long, cel::MapValue const&, cel::Function::InvokeContext const&) const>)
Line
Count
Source
486
67.6k
    explicit BinaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::Value>, unsigned long, cel::MapValue const&>::BinaryFunctionImpl::BinaryFunctionImpl(absl::lts_20260526::AnyInvocable<absl::lts_20260526::StatusOr<cel::Value> (unsigned long, cel::MapValue const&, cel::Function::InvokeContext const&) const>)
Line
Count
Source
486
67.6k
    explicit BinaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::Value>, double, cel::MapValue const&>::BinaryFunctionImpl::BinaryFunctionImpl(absl::lts_20260526::AnyInvocable<absl::lts_20260526::StatusOr<cel::Value> (double, cel::MapValue const&, cel::Function::InvokeContext const&) const>)
Line
Count
Source
486
67.6k
    explicit BinaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::Value>, cel::Value const&, cel::Value const&>::BinaryFunctionImpl::BinaryFunctionImpl(absl::lts_20260526::AnyInvocable<absl::lts_20260526::StatusOr<cel::Value> (cel::Value const&, cel::Value const&, cel::Function::InvokeContext const&) const>)
Unexecuted instantiation: cel::BinaryFunctionAdapter<cel::Value, bool, bool>::BinaryFunctionImpl::BinaryFunctionImpl(absl::lts_20260526::AnyInvocable<cel::Value (bool, bool, cel::Function::InvokeContext const&) const>)
cel::BinaryFunctionAdapter<cel::Value, cel::StringValue const&, cel::StringValue const&>::BinaryFunctionImpl::BinaryFunctionImpl(absl::lts_20260526::AnyInvocable<cel::Value (cel::StringValue const&, cel::StringValue const&, cel::Function::InvokeContext const&) const>)
Line
Count
Source
486
45.1k
    explicit BinaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
Unexecuted instantiation: cel::BinaryFunctionAdapter<cel::Value, cel::BytesValue const&, cel::BytesValue const&>::BinaryFunctionImpl::BinaryFunctionImpl(absl::lts_20260526::AnyInvocable<cel::Value (cel::BytesValue const&, cel::BytesValue const&, cel::Function::InvokeContext const&) const>)
cel::BinaryFunctionAdapter<cel::Value, absl::lts_20260526::Duration, absl::lts_20260526::Duration>::BinaryFunctionImpl::BinaryFunctionImpl(absl::lts_20260526::AnyInvocable<cel::Value (absl::lts_20260526::Duration, absl::lts_20260526::Duration, cel::Function::InvokeContext const&) const>)
Line
Count
Source
486
45.1k
    explicit BinaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::BinaryFunctionAdapter<cel::Value, absl::lts_20260526::Time, absl::lts_20260526::Time>::BinaryFunctionImpl::BinaryFunctionImpl(absl::lts_20260526::AnyInvocable<cel::Value (absl::lts_20260526::Time, absl::lts_20260526::Time, cel::Function::InvokeContext const&) const>)
Line
Count
Source
486
22.5k
    explicit BinaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
Unexecuted instantiation: cel::BinaryFunctionAdapter<cel::Value, cel::NullValue const&, cel::NullValue const&>::BinaryFunctionImpl::BinaryFunctionImpl(absl::lts_20260526::AnyInvocable<cel::Value (cel::NullValue const&, cel::NullValue const&, cel::Function::InvokeContext const&) const>)
Unexecuted instantiation: cel::BinaryFunctionAdapter<cel::Value, cel::TypeValue const&, cel::TypeValue const&>::BinaryFunctionImpl::BinaryFunctionImpl(absl::lts_20260526::AnyInvocable<cel::Value (cel::TypeValue const&, cel::TypeValue const&, cel::Function::InvokeContext const&) const>)
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::Value>, cel::MapValue const&, cel::MapValue const&>::BinaryFunctionImpl::BinaryFunctionImpl(absl::lts_20260526::AnyInvocable<absl::lts_20260526::StatusOr<cel::Value> (cel::MapValue const&, cel::MapValue const&, cel::Function::InvokeContext const&) const>)
Unexecuted instantiation: cel::BinaryFunctionAdapter<bool, cel::StructValue const&, cel::NullValue const&>::BinaryFunctionImpl::BinaryFunctionImpl(absl::lts_20260526::AnyInvocable<bool (cel::StructValue const&, cel::NullValue const&, cel::Function::InvokeContext const&) const>)
Unexecuted instantiation: cel::BinaryFunctionAdapter<bool, cel::NullValue const&, cel::StructValue const&>::BinaryFunctionImpl::BinaryFunctionImpl(absl::lts_20260526::AnyInvocable<bool (cel::NullValue const&, cel::StructValue const&, cel::Function::InvokeContext const&) const>)
cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::StringValue>, cel::StringValue const&, cel::StringValue const&>::BinaryFunctionImpl::BinaryFunctionImpl(absl::lts_20260526::AnyInvocable<absl::lts_20260526::StatusOr<cel::StringValue> (cel::StringValue const&, cel::StringValue const&, cel::Function::InvokeContext const&) const>)
Line
Count
Source
486
22.5k
    explicit BinaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::BytesValue>, cel::BytesValue const&, cel::BytesValue const&>::BinaryFunctionImpl::BinaryFunctionImpl(absl::lts_20260526::AnyInvocable<absl::lts_20260526::StatusOr<cel::BytesValue> (cel::BytesValue const&, cel::BytesValue const&, cel::Function::InvokeContext const&) const>)
Line
Count
Source
486
22.5k
    explicit BinaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::BinaryFunctionAdapter<cel::Value, absl::lts_20260526::Time, cel::StringValue const&>::BinaryFunctionImpl::BinaryFunctionImpl(absl::lts_20260526::AnyInvocable<cel::Value (absl::lts_20260526::Time, cel::StringValue const&, cel::Function::InvokeContext const&) const>)
Line
Count
Source
486
225k
    explicit BinaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::Value>, absl::lts_20260526::Time, absl::lts_20260526::Duration>::BinaryFunctionImpl::BinaryFunctionImpl(absl::lts_20260526::AnyInvocable<absl::lts_20260526::StatusOr<cel::Value> (absl::lts_20260526::Time, absl::lts_20260526::Duration, cel::Function::InvokeContext const&) const>)
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::Value>, absl::lts_20260526::Duration, absl::lts_20260526::Time>::BinaryFunctionImpl::BinaryFunctionImpl(absl::lts_20260526::AnyInvocable<absl::lts_20260526::StatusOr<cel::Value> (absl::lts_20260526::Duration, absl::lts_20260526::Time, cel::Function::InvokeContext const&) const>)
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::Value>, absl::lts_20260526::Duration, absl::lts_20260526::Duration>::BinaryFunctionImpl::BinaryFunctionImpl(absl::lts_20260526::AnyInvocable<absl::lts_20260526::StatusOr<cel::Value> (absl::lts_20260526::Duration, absl::lts_20260526::Duration, cel::Function::InvokeContext const&) const>)
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::Value>, absl::lts_20260526::Time, absl::lts_20260526::Time>::BinaryFunctionImpl::BinaryFunctionImpl(absl::lts_20260526::AnyInvocable<absl::lts_20260526::StatusOr<cel::Value> (absl::lts_20260526::Time, absl::lts_20260526::Time, cel::Function::InvokeContext const&) const>)
cel::BinaryFunctionAdapter<cel::Value, absl::lts_20260526::Time, absl::lts_20260526::Duration>::BinaryFunctionImpl::BinaryFunctionImpl(absl::lts_20260526::AnyInvocable<cel::Value (absl::lts_20260526::Time, absl::lts_20260526::Duration, cel::Function::InvokeContext const&) const>)
Line
Count
Source
486
45.1k
    explicit BinaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
cel::BinaryFunctionAdapter<cel::Value, absl::lts_20260526::Duration, absl::lts_20260526::Time>::BinaryFunctionImpl::BinaryFunctionImpl(absl::lts_20260526::AnyInvocable<cel::Value (absl::lts_20260526::Duration, absl::lts_20260526::Time, cel::Function::InvokeContext const&) const>)
Line
Count
Source
486
22.5k
    explicit BinaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
487
    absl::StatusOr<Value> Invoke(
488
        absl::Span<const Value> args,
489
11.3M
        const Function::InvokeContext& context) const final {
490
11.3M
      using Arg1Traits = runtime_internal::AdaptedTypeTraits<U>;
491
11.3M
      using Arg2Traits = runtime_internal::AdaptedTypeTraits<V>;
492
11.3M
      if (args.size() != 2) {
493
0
        return absl::InvalidArgumentError(
494
0
            "unexpected number of arguments for binary function");
495
0
      }
496
11.3M
      typename Arg1Traits::AssignableType arg1;
497
11.3M
      typename Arg2Traits::AssignableType arg2;
498
11.3M
      CEL_RETURN_IF_ERROR(
499
11.3M
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
500
11.3M
      CEL_RETURN_IF_ERROR(
501
11.3M
          runtime_internal::ValueToAdaptedVisitor{args[1]}(&arg2));
502
503
      if constexpr (std::is_same_v<T, Value> ||
504
11.0M
                    std::is_same_v<T, absl::StatusOr<Value>>) {
505
11.0M
        return fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2), context);
506
11.0M
      } else {
507
324k
        T result =
508
324k
            fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2), context);
509
510
324k
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
511
324k
      }
512
11.3M
    }
cel::BinaryFunctionAdapter<cel::Value, double, double>::BinaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Line
Count
Source
489
51.9k
        const Function::InvokeContext& context) const final {
490
51.9k
      using Arg1Traits = runtime_internal::AdaptedTypeTraits<U>;
491
51.9k
      using Arg2Traits = runtime_internal::AdaptedTypeTraits<V>;
492
51.9k
      if (args.size() != 2) {
493
0
        return absl::InvalidArgumentError(
494
0
            "unexpected number of arguments for binary function");
495
0
      }
496
51.9k
      typename Arg1Traits::AssignableType arg1;
497
51.9k
      typename Arg2Traits::AssignableType arg2;
498
51.9k
      CEL_RETURN_IF_ERROR(
499
51.9k
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
500
51.9k
      CEL_RETURN_IF_ERROR(
501
51.9k
          runtime_internal::ValueToAdaptedVisitor{args[1]}(&arg2));
502
503
      if constexpr (std::is_same_v<T, Value> ||
504
51.9k
                    std::is_same_v<T, absl::StatusOr<Value>>) {
505
51.9k
        return fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2), context);
506
      } else {
507
        T result =
508
            fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2), context);
509
510
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
511
      }
512
51.9k
    }
cel::BinaryFunctionAdapter<cel::Value, long, long>::BinaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Line
Count
Source
489
7.30M
        const Function::InvokeContext& context) const final {
490
7.30M
      using Arg1Traits = runtime_internal::AdaptedTypeTraits<U>;
491
7.30M
      using Arg2Traits = runtime_internal::AdaptedTypeTraits<V>;
492
7.30M
      if (args.size() != 2) {
493
0
        return absl::InvalidArgumentError(
494
0
            "unexpected number of arguments for binary function");
495
0
      }
496
7.30M
      typename Arg1Traits::AssignableType arg1;
497
7.30M
      typename Arg2Traits::AssignableType arg2;
498
7.30M
      CEL_RETURN_IF_ERROR(
499
7.30M
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
500
7.30M
      CEL_RETURN_IF_ERROR(
501
7.30M
          runtime_internal::ValueToAdaptedVisitor{args[1]}(&arg2));
502
503
      if constexpr (std::is_same_v<T, Value> ||
504
7.30M
                    std::is_same_v<T, absl::StatusOr<Value>>) {
505
7.30M
        return fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2), context);
506
      } else {
507
        T result =
508
            fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2), context);
509
510
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
511
      }
512
7.30M
    }
cel::BinaryFunctionAdapter<cel::Value, unsigned long, unsigned long>::BinaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Line
Count
Source
489
3.34M
        const Function::InvokeContext& context) const final {
490
3.34M
      using Arg1Traits = runtime_internal::AdaptedTypeTraits<U>;
491
3.34M
      using Arg2Traits = runtime_internal::AdaptedTypeTraits<V>;
492
3.34M
      if (args.size() != 2) {
493
0
        return absl::InvalidArgumentError(
494
0
            "unexpected number of arguments for binary function");
495
0
      }
496
3.34M
      typename Arg1Traits::AssignableType arg1;
497
3.34M
      typename Arg2Traits::AssignableType arg2;
498
3.34M
      CEL_RETURN_IF_ERROR(
499
3.34M
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
500
3.34M
      CEL_RETURN_IF_ERROR(
501
3.34M
          runtime_internal::ValueToAdaptedVisitor{args[1]}(&arg2));
502
503
      if constexpr (std::is_same_v<T, Value> ||
504
3.34M
                    std::is_same_v<T, absl::StatusOr<Value>>) {
505
3.34M
        return fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2), context);
506
      } else {
507
        T result =
508
            fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2), context);
509
510
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
511
      }
512
3.34M
    }
cel::BinaryFunctionAdapter<bool, double, long>::BinaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Line
Count
Source
489
11.8k
        const Function::InvokeContext& context) const final {
490
11.8k
      using Arg1Traits = runtime_internal::AdaptedTypeTraits<U>;
491
11.8k
      using Arg2Traits = runtime_internal::AdaptedTypeTraits<V>;
492
11.8k
      if (args.size() != 2) {
493
0
        return absl::InvalidArgumentError(
494
0
            "unexpected number of arguments for binary function");
495
0
      }
496
11.8k
      typename Arg1Traits::AssignableType arg1;
497
11.8k
      typename Arg2Traits::AssignableType arg2;
498
11.8k
      CEL_RETURN_IF_ERROR(
499
11.8k
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
500
11.8k
      CEL_RETURN_IF_ERROR(
501
11.8k
          runtime_internal::ValueToAdaptedVisitor{args[1]}(&arg2));
502
503
      if constexpr (std::is_same_v<T, Value> ||
504
                    std::is_same_v<T, absl::StatusOr<Value>>) {
505
        return fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2), context);
506
11.8k
      } else {
507
11.8k
        T result =
508
11.8k
            fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2), context);
509
510
11.8k
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
511
11.8k
      }
512
11.8k
    }
cel::BinaryFunctionAdapter<bool, double, unsigned long>::BinaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Line
Count
Source
489
6.85k
        const Function::InvokeContext& context) const final {
490
6.85k
      using Arg1Traits = runtime_internal::AdaptedTypeTraits<U>;
491
6.85k
      using Arg2Traits = runtime_internal::AdaptedTypeTraits<V>;
492
6.85k
      if (args.size() != 2) {
493
0
        return absl::InvalidArgumentError(
494
0
            "unexpected number of arguments for binary function");
495
0
      }
496
6.85k
      typename Arg1Traits::AssignableType arg1;
497
6.85k
      typename Arg2Traits::AssignableType arg2;
498
6.85k
      CEL_RETURN_IF_ERROR(
499
6.85k
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
500
6.85k
      CEL_RETURN_IF_ERROR(
501
6.85k
          runtime_internal::ValueToAdaptedVisitor{args[1]}(&arg2));
502
503
      if constexpr (std::is_same_v<T, Value> ||
504
                    std::is_same_v<T, absl::StatusOr<Value>>) {
505
        return fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2), context);
506
6.85k
      } else {
507
6.85k
        T result =
508
6.85k
            fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2), context);
509
510
6.85k
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
511
6.85k
      }
512
6.85k
    }
cel::BinaryFunctionAdapter<bool, unsigned long, double>::BinaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Line
Count
Source
489
23.6k
        const Function::InvokeContext& context) const final {
490
23.6k
      using Arg1Traits = runtime_internal::AdaptedTypeTraits<U>;
491
23.6k
      using Arg2Traits = runtime_internal::AdaptedTypeTraits<V>;
492
23.6k
      if (args.size() != 2) {
493
0
        return absl::InvalidArgumentError(
494
0
            "unexpected number of arguments for binary function");
495
0
      }
496
23.6k
      typename Arg1Traits::AssignableType arg1;
497
23.6k
      typename Arg2Traits::AssignableType arg2;
498
23.6k
      CEL_RETURN_IF_ERROR(
499
23.6k
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
500
23.6k
      CEL_RETURN_IF_ERROR(
501
23.6k
          runtime_internal::ValueToAdaptedVisitor{args[1]}(&arg2));
502
503
      if constexpr (std::is_same_v<T, Value> ||
504
                    std::is_same_v<T, absl::StatusOr<Value>>) {
505
        return fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2), context);
506
23.6k
      } else {
507
23.6k
        T result =
508
23.6k
            fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2), context);
509
510
23.6k
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
511
23.6k
      }
512
23.6k
    }
cel::BinaryFunctionAdapter<bool, unsigned long, long>::BinaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Line
Count
Source
489
20.3k
        const Function::InvokeContext& context) const final {
490
20.3k
      using Arg1Traits = runtime_internal::AdaptedTypeTraits<U>;
491
20.3k
      using Arg2Traits = runtime_internal::AdaptedTypeTraits<V>;
492
20.3k
      if (args.size() != 2) {
493
0
        return absl::InvalidArgumentError(
494
0
            "unexpected number of arguments for binary function");
495
0
      }
496
20.3k
      typename Arg1Traits::AssignableType arg1;
497
20.3k
      typename Arg2Traits::AssignableType arg2;
498
20.3k
      CEL_RETURN_IF_ERROR(
499
20.3k
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
500
20.3k
      CEL_RETURN_IF_ERROR(
501
20.3k
          runtime_internal::ValueToAdaptedVisitor{args[1]}(&arg2));
502
503
      if constexpr (std::is_same_v<T, Value> ||
504
                    std::is_same_v<T, absl::StatusOr<Value>>) {
505
        return fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2), context);
506
20.3k
      } else {
507
20.3k
        T result =
508
20.3k
            fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2), context);
509
510
20.3k
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
511
20.3k
      }
512
20.3k
    }
cel::BinaryFunctionAdapter<bool, long, double>::BinaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Line
Count
Source
489
68.6k
        const Function::InvokeContext& context) const final {
490
68.6k
      using Arg1Traits = runtime_internal::AdaptedTypeTraits<U>;
491
68.6k
      using Arg2Traits = runtime_internal::AdaptedTypeTraits<V>;
492
68.6k
      if (args.size() != 2) {
493
0
        return absl::InvalidArgumentError(
494
0
            "unexpected number of arguments for binary function");
495
0
      }
496
68.6k
      typename Arg1Traits::AssignableType arg1;
497
68.6k
      typename Arg2Traits::AssignableType arg2;
498
68.6k
      CEL_RETURN_IF_ERROR(
499
68.6k
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
500
68.6k
      CEL_RETURN_IF_ERROR(
501
68.6k
          runtime_internal::ValueToAdaptedVisitor{args[1]}(&arg2));
502
503
      if constexpr (std::is_same_v<T, Value> ||
504
                    std::is_same_v<T, absl::StatusOr<Value>>) {
505
        return fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2), context);
506
68.6k
      } else {
507
68.6k
        T result =
508
68.6k
            fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2), context);
509
510
68.6k
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
511
68.6k
      }
512
68.6k
    }
cel::BinaryFunctionAdapter<bool, long, unsigned long>::BinaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Line
Count
Source
489
13.1k
        const Function::InvokeContext& context) const final {
490
13.1k
      using Arg1Traits = runtime_internal::AdaptedTypeTraits<U>;
491
13.1k
      using Arg2Traits = runtime_internal::AdaptedTypeTraits<V>;
492
13.1k
      if (args.size() != 2) {
493
0
        return absl::InvalidArgumentError(
494
0
            "unexpected number of arguments for binary function");
495
0
      }
496
13.1k
      typename Arg1Traits::AssignableType arg1;
497
13.1k
      typename Arg2Traits::AssignableType arg2;
498
13.1k
      CEL_RETURN_IF_ERROR(
499
13.1k
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
500
13.1k
      CEL_RETURN_IF_ERROR(
501
13.1k
          runtime_internal::ValueToAdaptedVisitor{args[1]}(&arg2));
502
503
      if constexpr (std::is_same_v<T, Value> ||
504
                    std::is_same_v<T, absl::StatusOr<Value>>) {
505
        return fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2), context);
506
13.1k
      } else {
507
13.1k
        T result =
508
13.1k
            fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2), context);
509
510
13.1k
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
511
13.1k
      }
512
13.1k
    }
cel::BinaryFunctionAdapter<bool, bool, bool>::BinaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Line
Count
Source
489
1.48k
        const Function::InvokeContext& context) const final {
490
1.48k
      using Arg1Traits = runtime_internal::AdaptedTypeTraits<U>;
491
1.48k
      using Arg2Traits = runtime_internal::AdaptedTypeTraits<V>;
492
1.48k
      if (args.size() != 2) {
493
0
        return absl::InvalidArgumentError(
494
0
            "unexpected number of arguments for binary function");
495
0
      }
496
1.48k
      typename Arg1Traits::AssignableType arg1;
497
1.48k
      typename Arg2Traits::AssignableType arg2;
498
1.48k
      CEL_RETURN_IF_ERROR(
499
1.48k
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
500
1.48k
      CEL_RETURN_IF_ERROR(
501
1.48k
          runtime_internal::ValueToAdaptedVisitor{args[1]}(&arg2));
502
503
      if constexpr (std::is_same_v<T, Value> ||
504
                    std::is_same_v<T, absl::StatusOr<Value>>) {
505
        return fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2), context);
506
1.48k
      } else {
507
1.48k
        T result =
508
1.48k
            fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2), context);
509
510
1.48k
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
511
1.48k
      }
512
1.48k
    }
cel::BinaryFunctionAdapter<bool, long, long>::BinaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Line
Count
Source
489
142k
        const Function::InvokeContext& context) const final {
490
142k
      using Arg1Traits = runtime_internal::AdaptedTypeTraits<U>;
491
142k
      using Arg2Traits = runtime_internal::AdaptedTypeTraits<V>;
492
142k
      if (args.size() != 2) {
493
0
        return absl::InvalidArgumentError(
494
0
            "unexpected number of arguments for binary function");
495
0
      }
496
142k
      typename Arg1Traits::AssignableType arg1;
497
142k
      typename Arg2Traits::AssignableType arg2;
498
142k
      CEL_RETURN_IF_ERROR(
499
142k
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
500
142k
      CEL_RETURN_IF_ERROR(
501
142k
          runtime_internal::ValueToAdaptedVisitor{args[1]}(&arg2));
502
503
      if constexpr (std::is_same_v<T, Value> ||
504
                    std::is_same_v<T, absl::StatusOr<Value>>) {
505
        return fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2), context);
506
142k
      } else {
507
142k
        T result =
508
142k
            fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2), context);
509
510
142k
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
511
142k
      }
512
142k
    }
cel::BinaryFunctionAdapter<bool, unsigned long, unsigned long>::BinaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Line
Count
Source
489
1.15k
        const Function::InvokeContext& context) const final {
490
1.15k
      using Arg1Traits = runtime_internal::AdaptedTypeTraits<U>;
491
1.15k
      using Arg2Traits = runtime_internal::AdaptedTypeTraits<V>;
492
1.15k
      if (args.size() != 2) {
493
0
        return absl::InvalidArgumentError(
494
0
            "unexpected number of arguments for binary function");
495
0
      }
496
1.15k
      typename Arg1Traits::AssignableType arg1;
497
1.15k
      typename Arg2Traits::AssignableType arg2;
498
1.15k
      CEL_RETURN_IF_ERROR(
499
1.15k
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
500
1.15k
      CEL_RETURN_IF_ERROR(
501
1.15k
          runtime_internal::ValueToAdaptedVisitor{args[1]}(&arg2));
502
503
      if constexpr (std::is_same_v<T, Value> ||
504
                    std::is_same_v<T, absl::StatusOr<Value>>) {
505
        return fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2), context);
506
1.15k
      } else {
507
1.15k
        T result =
508
1.15k
            fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2), context);
509
510
1.15k
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
511
1.15k
      }
512
1.15k
    }
cel::BinaryFunctionAdapter<bool, double, double>::BinaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Line
Count
Source
489
2.39k
        const Function::InvokeContext& context) const final {
490
2.39k
      using Arg1Traits = runtime_internal::AdaptedTypeTraits<U>;
491
2.39k
      using Arg2Traits = runtime_internal::AdaptedTypeTraits<V>;
492
2.39k
      if (args.size() != 2) {
493
0
        return absl::InvalidArgumentError(
494
0
            "unexpected number of arguments for binary function");
495
0
      }
496
2.39k
      typename Arg1Traits::AssignableType arg1;
497
2.39k
      typename Arg2Traits::AssignableType arg2;
498
2.39k
      CEL_RETURN_IF_ERROR(
499
2.39k
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
500
2.39k
      CEL_RETURN_IF_ERROR(
501
2.39k
          runtime_internal::ValueToAdaptedVisitor{args[1]}(&arg2));
502
503
      if constexpr (std::is_same_v<T, Value> ||
504
                    std::is_same_v<T, absl::StatusOr<Value>>) {
505
        return fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2), context);
506
2.39k
      } else {
507
2.39k
        T result =
508
2.39k
            fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2), context);
509
510
2.39k
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
511
2.39k
      }
512
2.39k
    }
cel::BinaryFunctionAdapter<bool, cel::StringValue const&, cel::StringValue const&>::BinaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Line
Count
Source
489
13.2k
        const Function::InvokeContext& context) const final {
490
13.2k
      using Arg1Traits = runtime_internal::AdaptedTypeTraits<U>;
491
13.2k
      using Arg2Traits = runtime_internal::AdaptedTypeTraits<V>;
492
13.2k
      if (args.size() != 2) {
493
0
        return absl::InvalidArgumentError(
494
0
            "unexpected number of arguments for binary function");
495
0
      }
496
13.2k
      typename Arg1Traits::AssignableType arg1;
497
13.2k
      typename Arg2Traits::AssignableType arg2;
498
13.2k
      CEL_RETURN_IF_ERROR(
499
13.2k
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
500
13.2k
      CEL_RETURN_IF_ERROR(
501
13.2k
          runtime_internal::ValueToAdaptedVisitor{args[1]}(&arg2));
502
503
      if constexpr (std::is_same_v<T, Value> ||
504
                    std::is_same_v<T, absl::StatusOr<Value>>) {
505
        return fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2), context);
506
13.2k
      } else {
507
13.2k
        T result =
508
13.2k
            fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2), context);
509
510
13.2k
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
511
13.2k
      }
512
13.2k
    }
cel::BinaryFunctionAdapter<bool, cel::BytesValue const&, cel::BytesValue const&>::BinaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Line
Count
Source
489
923
        const Function::InvokeContext& context) const final {
490
923
      using Arg1Traits = runtime_internal::AdaptedTypeTraits<U>;
491
923
      using Arg2Traits = runtime_internal::AdaptedTypeTraits<V>;
492
923
      if (args.size() != 2) {
493
0
        return absl::InvalidArgumentError(
494
0
            "unexpected number of arguments for binary function");
495
0
      }
496
923
      typename Arg1Traits::AssignableType arg1;
497
923
      typename Arg2Traits::AssignableType arg2;
498
923
      CEL_RETURN_IF_ERROR(
499
923
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
500
923
      CEL_RETURN_IF_ERROR(
501
923
          runtime_internal::ValueToAdaptedVisitor{args[1]}(&arg2));
502
503
      if constexpr (std::is_same_v<T, Value> ||
504
                    std::is_same_v<T, absl::StatusOr<Value>>) {
505
        return fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2), context);
506
923
      } else {
507
923
        T result =
508
923
            fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2), context);
509
510
923
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
511
923
      }
512
923
    }
cel::BinaryFunctionAdapter<bool, absl::lts_20260526::Duration, absl::lts_20260526::Duration>::BinaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Line
Count
Source
489
2.24k
        const Function::InvokeContext& context) const final {
490
2.24k
      using Arg1Traits = runtime_internal::AdaptedTypeTraits<U>;
491
2.24k
      using Arg2Traits = runtime_internal::AdaptedTypeTraits<V>;
492
2.24k
      if (args.size() != 2) {
493
0
        return absl::InvalidArgumentError(
494
0
            "unexpected number of arguments for binary function");
495
0
      }
496
2.24k
      typename Arg1Traits::AssignableType arg1;
497
2.24k
      typename Arg2Traits::AssignableType arg2;
498
2.24k
      CEL_RETURN_IF_ERROR(
499
2.24k
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
500
2.24k
      CEL_RETURN_IF_ERROR(
501
2.24k
          runtime_internal::ValueToAdaptedVisitor{args[1]}(&arg2));
502
503
      if constexpr (std::is_same_v<T, Value> ||
504
                    std::is_same_v<T, absl::StatusOr<Value>>) {
505
        return fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2), context);
506
2.24k
      } else {
507
2.24k
        T result =
508
2.24k
            fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2), context);
509
510
2.24k
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
511
2.24k
      }
512
2.24k
    }
cel::BinaryFunctionAdapter<bool, absl::lts_20260526::Time, absl::lts_20260526::Time>::BinaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Line
Count
Source
489
1.97k
        const Function::InvokeContext& context) const final {
490
1.97k
      using Arg1Traits = runtime_internal::AdaptedTypeTraits<U>;
491
1.97k
      using Arg2Traits = runtime_internal::AdaptedTypeTraits<V>;
492
1.97k
      if (args.size() != 2) {
493
0
        return absl::InvalidArgumentError(
494
0
            "unexpected number of arguments for binary function");
495
0
      }
496
1.97k
      typename Arg1Traits::AssignableType arg1;
497
1.97k
      typename Arg2Traits::AssignableType arg2;
498
1.97k
      CEL_RETURN_IF_ERROR(
499
1.97k
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
500
1.97k
      CEL_RETURN_IF_ERROR(
501
1.97k
          runtime_internal::ValueToAdaptedVisitor{args[1]}(&arg2));
502
503
      if constexpr (std::is_same_v<T, Value> ||
504
                    std::is_same_v<T, absl::StatusOr<Value>>) {
505
        return fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2), context);
506
1.97k
      } else {
507
1.97k
        T result =
508
1.97k
            fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2), context);
509
510
1.97k
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
511
1.97k
      }
512
1.97k
    }
cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::Value>, cel::ListValue const&, cel::ListValue const&>::BinaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Line
Count
Source
489
366k
        const Function::InvokeContext& context) const final {
490
366k
      using Arg1Traits = runtime_internal::AdaptedTypeTraits<U>;
491
366k
      using Arg2Traits = runtime_internal::AdaptedTypeTraits<V>;
492
366k
      if (args.size() != 2) {
493
0
        return absl::InvalidArgumentError(
494
0
            "unexpected number of arguments for binary function");
495
0
      }
496
366k
      typename Arg1Traits::AssignableType arg1;
497
366k
      typename Arg2Traits::AssignableType arg2;
498
366k
      CEL_RETURN_IF_ERROR(
499
366k
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
500
366k
      CEL_RETURN_IF_ERROR(
501
366k
          runtime_internal::ValueToAdaptedVisitor{args[1]}(&arg2));
502
503
      if constexpr (std::is_same_v<T, Value> ||
504
366k
                    std::is_same_v<T, absl::StatusOr<Value>>) {
505
366k
        return fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2), context);
506
      } else {
507
        T result =
508
            fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2), context);
509
510
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
511
      }
512
366k
    }
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::ListValue>, cel::ListValue, cel::Value const&>::BinaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::Value>, cel::Value const&, cel::ListValue const&>::BinaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<bool>, bool, cel::ListValue const&>::BinaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<bool>, long, cel::ListValue const&>::BinaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<bool>, unsigned long, cel::ListValue const&>::BinaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<bool>, double, cel::ListValue const&>::BinaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<bool>, cel::StringValue const&, cel::ListValue const&>::BinaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<bool>, cel::BytesValue const&, cel::ListValue const&>::BinaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::Value>, cel::StringValue const&, cel::MapValue const&>::BinaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::Value>, bool, cel::MapValue const&>::BinaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::Value>, long, cel::MapValue const&>::BinaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::Value>, unsigned long, cel::MapValue const&>::BinaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::Value>, double, cel::MapValue const&>::BinaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::Value>, cel::Value const&, cel::Value const&>::BinaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Unexecuted instantiation: cel::BinaryFunctionAdapter<cel::Value, bool, bool>::BinaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Unexecuted instantiation: cel::BinaryFunctionAdapter<cel::Value, cel::StringValue const&, cel::StringValue const&>::BinaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Unexecuted instantiation: cel::BinaryFunctionAdapter<cel::Value, cel::BytesValue const&, cel::BytesValue const&>::BinaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
cel::BinaryFunctionAdapter<cel::Value, absl::lts_20260526::Duration, absl::lts_20260526::Duration>::BinaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Line
Count
Source
489
629
        const Function::InvokeContext& context) const final {
490
629
      using Arg1Traits = runtime_internal::AdaptedTypeTraits<U>;
491
629
      using Arg2Traits = runtime_internal::AdaptedTypeTraits<V>;
492
629
      if (args.size() != 2) {
493
0
        return absl::InvalidArgumentError(
494
0
            "unexpected number of arguments for binary function");
495
0
      }
496
629
      typename Arg1Traits::AssignableType arg1;
497
629
      typename Arg2Traits::AssignableType arg2;
498
629
      CEL_RETURN_IF_ERROR(
499
629
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
500
629
      CEL_RETURN_IF_ERROR(
501
629
          runtime_internal::ValueToAdaptedVisitor{args[1]}(&arg2));
502
503
      if constexpr (std::is_same_v<T, Value> ||
504
629
                    std::is_same_v<T, absl::StatusOr<Value>>) {
505
629
        return fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2), context);
506
      } else {
507
        T result =
508
            fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2), context);
509
510
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
511
      }
512
629
    }
cel::BinaryFunctionAdapter<cel::Value, absl::lts_20260526::Time, absl::lts_20260526::Time>::BinaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Line
Count
Source
489
306
        const Function::InvokeContext& context) const final {
490
306
      using Arg1Traits = runtime_internal::AdaptedTypeTraits<U>;
491
306
      using Arg2Traits = runtime_internal::AdaptedTypeTraits<V>;
492
306
      if (args.size() != 2) {
493
0
        return absl::InvalidArgumentError(
494
0
            "unexpected number of arguments for binary function");
495
0
      }
496
306
      typename Arg1Traits::AssignableType arg1;
497
306
      typename Arg2Traits::AssignableType arg2;
498
306
      CEL_RETURN_IF_ERROR(
499
306
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
500
306
      CEL_RETURN_IF_ERROR(
501
306
          runtime_internal::ValueToAdaptedVisitor{args[1]}(&arg2));
502
503
      if constexpr (std::is_same_v<T, Value> ||
504
306
                    std::is_same_v<T, absl::StatusOr<Value>>) {
505
306
        return fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2), context);
506
      } else {
507
        T result =
508
            fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2), context);
509
510
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
511
      }
512
306
    }
Unexecuted instantiation: cel::BinaryFunctionAdapter<cel::Value, cel::NullValue const&, cel::NullValue const&>::BinaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Unexecuted instantiation: cel::BinaryFunctionAdapter<cel::Value, cel::TypeValue const&, cel::TypeValue const&>::BinaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::Value>, cel::MapValue const&, cel::MapValue const&>::BinaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Unexecuted instantiation: cel::BinaryFunctionAdapter<bool, cel::StructValue const&, cel::NullValue const&>::BinaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Unexecuted instantiation: cel::BinaryFunctionAdapter<bool, cel::NullValue const&, cel::StructValue const&>::BinaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::StringValue>, cel::StringValue const&, cel::StringValue const&>::BinaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Line
Count
Source
489
13.3k
        const Function::InvokeContext& context) const final {
490
13.3k
      using Arg1Traits = runtime_internal::AdaptedTypeTraits<U>;
491
13.3k
      using Arg2Traits = runtime_internal::AdaptedTypeTraits<V>;
492
13.3k
      if (args.size() != 2) {
493
0
        return absl::InvalidArgumentError(
494
0
            "unexpected number of arguments for binary function");
495
0
      }
496
13.3k
      typename Arg1Traits::AssignableType arg1;
497
13.3k
      typename Arg2Traits::AssignableType arg2;
498
13.3k
      CEL_RETURN_IF_ERROR(
499
13.3k
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
500
13.3k
      CEL_RETURN_IF_ERROR(
501
13.3k
          runtime_internal::ValueToAdaptedVisitor{args[1]}(&arg2));
502
503
      if constexpr (std::is_same_v<T, Value> ||
504
                    std::is_same_v<T, absl::StatusOr<Value>>) {
505
        return fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2), context);
506
13.3k
      } else {
507
13.3k
        T result =
508
13.3k
            fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2), context);
509
510
13.3k
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
511
13.3k
      }
512
13.3k
    }
cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::BytesValue>, cel::BytesValue const&, cel::BytesValue const&>::BinaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Line
Count
Source
489
473
        const Function::InvokeContext& context) const final {
490
473
      using Arg1Traits = runtime_internal::AdaptedTypeTraits<U>;
491
473
      using Arg2Traits = runtime_internal::AdaptedTypeTraits<V>;
492
473
      if (args.size() != 2) {
493
0
        return absl::InvalidArgumentError(
494
0
            "unexpected number of arguments for binary function");
495
0
      }
496
473
      typename Arg1Traits::AssignableType arg1;
497
473
      typename Arg2Traits::AssignableType arg2;
498
473
      CEL_RETURN_IF_ERROR(
499
473
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
500
473
      CEL_RETURN_IF_ERROR(
501
473
          runtime_internal::ValueToAdaptedVisitor{args[1]}(&arg2));
502
503
      if constexpr (std::is_same_v<T, Value> ||
504
                    std::is_same_v<T, absl::StatusOr<Value>>) {
505
        return fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2), context);
506
473
      } else {
507
473
        T result =
508
473
            fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2), context);
509
510
473
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
511
473
      }
512
473
    }
Unexecuted instantiation: cel::BinaryFunctionAdapter<cel::Value, absl::lts_20260526::Time, cel::StringValue const&>::BinaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::Value>, absl::lts_20260526::Time, absl::lts_20260526::Duration>::BinaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::Value>, absl::lts_20260526::Duration, absl::lts_20260526::Time>::BinaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::Value>, absl::lts_20260526::Duration, absl::lts_20260526::Duration>::BinaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Unexecuted instantiation: cel::BinaryFunctionAdapter<absl::lts_20260526::StatusOr<cel::Value>, absl::lts_20260526::Time, absl::lts_20260526::Time>::BinaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
cel::BinaryFunctionAdapter<cel::Value, absl::lts_20260526::Time, absl::lts_20260526::Duration>::BinaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Line
Count
Source
489
578
        const Function::InvokeContext& context) const final {
490
578
      using Arg1Traits = runtime_internal::AdaptedTypeTraits<U>;
491
578
      using Arg2Traits = runtime_internal::AdaptedTypeTraits<V>;
492
578
      if (args.size() != 2) {
493
0
        return absl::InvalidArgumentError(
494
0
            "unexpected number of arguments for binary function");
495
0
      }
496
578
      typename Arg1Traits::AssignableType arg1;
497
578
      typename Arg2Traits::AssignableType arg2;
498
578
      CEL_RETURN_IF_ERROR(
499
578
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
500
578
      CEL_RETURN_IF_ERROR(
501
578
          runtime_internal::ValueToAdaptedVisitor{args[1]}(&arg2));
502
503
      if constexpr (std::is_same_v<T, Value> ||
504
578
                    std::is_same_v<T, absl::StatusOr<Value>>) {
505
578
        return fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2), context);
506
      } else {
507
        T result =
508
            fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2), context);
509
510
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
511
      }
512
578
    }
cel::BinaryFunctionAdapter<cel::Value, absl::lts_20260526::Duration, absl::lts_20260526::Time>::BinaryFunctionImpl::Invoke(absl::lts_20260526::Span<cel::Value const>, cel::Function::InvokeContext const&) const
Line
Count
Source
489
47
        const Function::InvokeContext& context) const final {
490
47
      using Arg1Traits = runtime_internal::AdaptedTypeTraits<U>;
491
47
      using Arg2Traits = runtime_internal::AdaptedTypeTraits<V>;
492
47
      if (args.size() != 2) {
493
0
        return absl::InvalidArgumentError(
494
0
            "unexpected number of arguments for binary function");
495
0
      }
496
47
      typename Arg1Traits::AssignableType arg1;
497
47
      typename Arg2Traits::AssignableType arg2;
498
47
      CEL_RETURN_IF_ERROR(
499
47
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
500
47
      CEL_RETURN_IF_ERROR(
501
47
          runtime_internal::ValueToAdaptedVisitor{args[1]}(&arg2));
502
503
      if constexpr (std::is_same_v<T, Value> ||
504
47
                    std::is_same_v<T, absl::StatusOr<Value>>) {
505
47
        return fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2), context);
506
      } else {
507
        T result =
508
            fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2), context);
509
510
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
511
      }
512
47
    }
513
514
   private:
515
    BinaryFunctionAdapter::FunctionType fn_;
516
  };
517
};
518
519
template <typename T, typename U, typename V, typename W>
520
class TernaryFunctionAdapter
521
    : public RegisterHelper<TernaryFunctionAdapter<T, U, V, W>> {
522
 public:
523
  using FunctionType =
524
      absl::AnyInvocable<T(U, V, W, const Function::InvokeContext&) const>;
525
526
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
527
    return std::make_unique<TernaryFunctionImpl>(std::move(fn));
528
  }
529
530
  template <typename F>
531
  static std::enable_if_t<
532
      std::is_invocable_v<
533
          F, U, V, W, const google::protobuf::DescriptorPool* absl_nonnull,
534
          google::protobuf::MessageFactory* absl_nonnull, google::protobuf::Arena* absl_nonnull>,
535
      std::unique_ptr<cel::Function>>
536
  WrapFunction(F&& function) {
537
    return WrapFunction([function = std::forward<F>(function)](
538
                            U arg1, V arg2, W arg3,
539
                            const Function::InvokeContext& context) -> T {
540
      return function(arg1, arg2, arg3, context.descriptor_pool(),
541
                      context.message_factory(), context.arena());
542
    });
543
  }
544
545
  template <typename F>
546
  static std::enable_if_t<std::is_invocable_v<F, U, V, W>,
547
                          std::unique_ptr<cel::Function>>
548
  WrapFunction(F&& function) {
549
    return WrapFunction([function = std::forward<F>(function)](
550
                            U arg1, V arg2, W arg3,
551
                            const Function::InvokeContext& context) -> T {
552
      return function(arg1, arg2, arg3);
553
    });
554
  }
555
556
  static FunctionDescriptor CreateDescriptor(absl::string_view name,
557
                                             bool receiver_style,
558
                                             bool is_strict) {
559
    return CreateDescriptor(
560
        name, receiver_style,
561
        FunctionDescriptorOptions{is_strict, /*is_contextual=*/false});
562
  }
563
564
  static FunctionDescriptor CreateDescriptor(
565
      absl::string_view name, bool receiver_style,
566
      FunctionDescriptorOptions options = {}) {
567
    return FunctionDescriptor(
568
        name, receiver_style,
569
        {runtime_internal::AdaptedKind<U>(), runtime_internal::AdaptedKind<V>(),
570
         runtime_internal::AdaptedKind<W>()},
571
        options);
572
  }
573
574
 private:
575
  class TernaryFunctionImpl : public Function {
576
   public:
577
    explicit TernaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
578
    absl::StatusOr<Value> Invoke(
579
        absl::Span<const Value> args,
580
        const Function::InvokeContext& context) const final {
581
      using Arg1Traits = runtime_internal::AdaptedTypeTraits<U>;
582
      using Arg2Traits = runtime_internal::AdaptedTypeTraits<V>;
583
      using Arg3Traits = runtime_internal::AdaptedTypeTraits<W>;
584
      if (args.size() != 3) {
585
        return absl::InvalidArgumentError(
586
            "unexpected number of arguments for ternary function");
587
      }
588
      typename Arg1Traits::AssignableType arg1;
589
      typename Arg2Traits::AssignableType arg2;
590
      typename Arg3Traits::AssignableType arg3;
591
      CEL_RETURN_IF_ERROR(
592
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
593
      CEL_RETURN_IF_ERROR(
594
          runtime_internal::ValueToAdaptedVisitor{args[1]}(&arg2));
595
      CEL_RETURN_IF_ERROR(
596
          runtime_internal::ValueToAdaptedVisitor{args[2]}(&arg3));
597
598
      if constexpr (std::is_same_v<T, Value> ||
599
                    std::is_same_v<T, absl::StatusOr<Value>>) {
600
        return fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2),
601
                   Arg3Traits::ToArg(arg3), context);
602
      } else {
603
        T result = fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2),
604
                       Arg3Traits::ToArg(arg3), context);
605
606
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
607
      }
608
    }
609
610
   private:
611
    TernaryFunctionAdapter::FunctionType fn_;
612
  };
613
};
614
615
template <typename T, typename U, typename V, typename W, typename X>
616
class QuaternaryFunctionAdapter
617
    : public RegisterHelper<QuaternaryFunctionAdapter<T, U, V, W, X>> {
618
 public:
619
  using FunctionType =
620
      absl::AnyInvocable<T(U, V, W, X, const Function::InvokeContext&) const>;
621
622
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
623
    return std::make_unique<QuaternaryFunctionImpl>(std::move(fn));
624
  }
625
626
  template <typename F>
627
  static std::enable_if_t<
628
      std::is_invocable_v<
629
          F, U, V, W, X, const google::protobuf::DescriptorPool* absl_nonnull,
630
          google::protobuf::MessageFactory* absl_nonnull, google::protobuf::Arena* absl_nonnull>,
631
      std::unique_ptr<cel::Function>>
632
  WrapFunction(F&& function) {
633
    return WrapFunction([function = std::forward<F>(function)](
634
                            U arg1, V arg2, W arg3, X arg4,
635
                            const Function::InvokeContext& context) -> T {
636
      return function(arg1, arg2, arg3, arg4, context.descriptor_pool(),
637
                      context.message_factory(), context.arena());
638
    });
639
  }
640
641
  template <typename F>
642
  static std::enable_if_t<std::is_invocable_v<F, U, V, W, X>,
643
                          std::unique_ptr<cel::Function>>
644
  WrapFunction(F&& function) {
645
    return WrapFunction([function = std::forward<F>(function)](
646
                            U arg1, V arg2, W arg3, X arg4,
647
                            const Function::InvokeContext& context) -> T {
648
      return function(arg1, arg2, arg3, arg4);
649
    });
650
  }
651
652
  static FunctionDescriptor CreateDescriptor(absl::string_view name,
653
                                             bool receiver_style,
654
                                             bool is_strict) {
655
    return CreateDescriptor(name, receiver_style,
656
                            {is_strict, /*is_contextual=*/false});
657
  }
658
659
  static FunctionDescriptor CreateDescriptor(
660
      absl::string_view name, bool receiver_style,
661
      FunctionDescriptorOptions options = {}) {
662
    return FunctionDescriptor(
663
        name, receiver_style,
664
        {runtime_internal::AdaptedKind<U>(), runtime_internal::AdaptedKind<V>(),
665
         runtime_internal::AdaptedKind<W>(),
666
         runtime_internal::AdaptedKind<X>()},
667
        options);
668
  }
669
670
 private:
671
  class QuaternaryFunctionImpl : public Function {
672
   public:
673
    explicit QuaternaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
674
    absl::StatusOr<Value> Invoke(
675
        absl::Span<const Value> args,
676
        const Function::InvokeContext& context) const final {
677
      using Arg1Traits = runtime_internal::AdaptedTypeTraits<U>;
678
      using Arg2Traits = runtime_internal::AdaptedTypeTraits<V>;
679
      using Arg3Traits = runtime_internal::AdaptedTypeTraits<W>;
680
      using Arg4Traits = runtime_internal::AdaptedTypeTraits<X>;
681
      if (args.size() != 4) {
682
        return absl::InvalidArgumentError(
683
            "unexpected number of arguments for quaternary function");
684
      }
685
      typename Arg1Traits::AssignableType arg1;
686
      typename Arg2Traits::AssignableType arg2;
687
      typename Arg3Traits::AssignableType arg3;
688
      typename Arg4Traits::AssignableType arg4;
689
      CEL_RETURN_IF_ERROR(
690
          runtime_internal::ValueToAdaptedVisitor{args[0]}(&arg1));
691
      CEL_RETURN_IF_ERROR(
692
          runtime_internal::ValueToAdaptedVisitor{args[1]}(&arg2));
693
      CEL_RETURN_IF_ERROR(
694
          runtime_internal::ValueToAdaptedVisitor{args[2]}(&arg3));
695
      CEL_RETURN_IF_ERROR(
696
          runtime_internal::ValueToAdaptedVisitor{args[3]}(&arg4));
697
698
      if constexpr (std::is_same_v<T, Value> ||
699
                    std::is_same_v<T, absl::StatusOr<Value>>) {
700
        return fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2),
701
                   Arg3Traits::ToArg(arg3), Arg4Traits::ToArg(arg4), context);
702
      } else {
703
        T result =
704
            fn_(Arg1Traits::ToArg(arg1), Arg2Traits::ToArg(arg2),
705
                Arg3Traits::ToArg(arg3), Arg4Traits::ToArg(arg4), context);
706
707
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
708
      }
709
    }
710
711
   private:
712
    QuaternaryFunctionAdapter::FunctionType fn_;
713
  };
714
};
715
716
// Primary template for n-ary adapter.
717
template <typename T, typename... Args>
718
class NaryFunctionAdapter;
719
720
template <typename T>
721
class NaryFunctionAdapter<T> : public NullaryFunctionAdapter<T> {};
722
723
template <typename T, typename U>
724
class NaryFunctionAdapter<T, U> : public UnaryFunctionAdapter<T, U> {};
725
726
template <typename T, typename U, typename V>
727
class NaryFunctionAdapter<T, U, V> : public BinaryFunctionAdapter<T, U, V> {};
728
729
template <typename T, typename U, typename V, typename W>
730
class NaryFunctionAdapter<T, U, V, W>
731
    : public TernaryFunctionAdapter<T, U, V, W> {};
732
733
template <typename T, typename U, typename V, typename W, typename X>
734
class NaryFunctionAdapter<T, U, V, W, X>
735
    : public QuaternaryFunctionAdapter<T, U, V, W, X> {};
736
737
// N-ary function adapter.
738
//
739
// Prefer using one of the specific count adapters above for readability and
740
// better error messages.
741
template <typename T, typename... Args>
742
class NaryFunctionAdapter
743
    : public RegisterHelper<NaryFunctionAdapter<T, Args...>> {
744
 public:
745
  using FunctionType =
746
      absl::AnyInvocable<T(Args..., const Function::InvokeContext&) const>;
747
748
  static FunctionDescriptor CreateDescriptor(absl::string_view name,
749
                                             bool receiver_style,
750
                                             bool is_strict) {
751
    return CreateDescriptor(name, receiver_style,
752
                            {is_strict, /*is_contextual=*/false});
753
  }
754
755
  static FunctionDescriptor CreateDescriptor(
756
      absl::string_view name, bool receiver_style,
757
      FunctionDescriptorOptions options = {}) {
758
    return FunctionDescriptor(name, receiver_style,
759
                              {runtime_internal::AdaptedKind<Args>()...},
760
                              options);
761
  }
762
763
  static std::unique_ptr<cel::Function> WrapFunction(FunctionType fn) {
764
    return std::make_unique<NaryFunctionImpl>(std::move(fn));
765
  }
766
767
  template <typename F>
768
  static std::enable_if_t<
769
      std::is_invocable_v<
770
          F, Args..., const google::protobuf::DescriptorPool* absl_nonnull,
771
          google::protobuf::MessageFactory* absl_nonnull, google::protobuf::Arena* absl_nonnull>,
772
      std::unique_ptr<cel::Function>>
773
  WrapFunction(F&& function) {
774
    return WrapFunction(
775
        [function = std::forward<F>(function)](
776
            Args... args, const Function::InvokeContext& context) -> T {
777
          return function(args..., context.descriptor_pool(),
778
                          context.message_factory(), context.arena());
779
        });
780
  }
781
782
  template <typename F>
783
  static std::enable_if_t<std::is_invocable_v<F, Args...>,
784
                          std::unique_ptr<cel::Function>>
785
  WrapFunction(F&& function) {
786
    return WrapFunction(
787
        [function = std::forward<F>(function)](
788
            Args... args, const Function::InvokeContext& context) -> T {
789
          return function(args...);
790
        });
791
  }
792
793
 private:
794
  class NaryFunctionImpl : public Function {
795
   private:
796
    using ArgBuffer = std::tuple<
797
        typename runtime_internal::AdaptedTypeTraits<Args>::AssignableType...>;
798
799
   public:
800
    explicit NaryFunctionImpl(FunctionType fn) : fn_(std::move(fn)) {}
801
    absl::StatusOr<Value> Invoke(
802
        absl::Span<const Value> args,
803
        const Function::InvokeContext& context) const final {
804
      if (args.size() != sizeof...(Args)) {
805
        return absl::InvalidArgumentError(
806
            absl::StrCat("unexpected number of arguments for ", sizeof...(Args),
807
                         "-ary function"));
808
      }
809
      ArgBuffer arg_buffer;
810
      CEL_RETURN_IF_ERROR(
811
          runtime_internal::AdaptHelper<Args...>::Apply(args, arg_buffer));
812
      if constexpr (std::is_same_v<T, Value> ||
813
                    std::is_same_v<T, absl::StatusOr<Value>>) {
814
        return runtime_internal::ToArgsHelper<Args...>::template Apply<T>(
815
            fn_, arg_buffer, context);
816
      } else {
817
        T result = runtime_internal::ToArgsHelper<Args...>::template Apply<T>(
818
            fn_, arg_buffer, context);
819
        return runtime_internal::AdaptedToValueVisitor{}(std::move(result));
820
      }
821
    }
822
823
   private:
824
    FunctionType fn_;
825
  };
826
};
827
828
}  // namespace cel
829
830
#endif  // THIRD_PARTY_CEL_CPP_RUNTIME_FUNCTION_ADAPTER_H_