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

Function IndexOutOfBoundsError

common/values/error_value.h:192–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190// avoid ambiguous overload issues for smaller integral types like `int`.
191template <typename T>
192std::enable_if_t<std::conjunction_v<std::is_integral<T>, std::is_unsigned<T>,
193 std::negation<std::is_same<T, size_t>>>,
194 ErrorValue>
195IndexOutOfBoundsError(T index) {
196 static_assert(sizeof(T) <= sizeof(size_t));
197 return IndexOutOfBoundsError(static_cast<size_t>(index));
198}
199template <typename T>
200std::enable_if_t<std::conjunction_v<std::is_integral<T>, std::is_signed<T>,
201 std::negation<std::is_same<T, ptrdiff_t>>>,

Callers 7

GetMethod · 0.70
GetMethod · 0.70
GetMethod · 0.70
GetMethod · 0.70
CustomListValueTestClass · 0.70
GetMethod · 0.70
GetMethod · 0.70

Calls

no outgoing calls

Tested by 1

GetMethod · 0.56