MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / ValueArray

Class ValueArray

tests/gtest/gtest.h:11123–11139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11121
11122template <typename... Ts>
11123class ValueArray {
11124 public:
11125 ValueArray(Ts... v) : v_{std::move(v)...} {}
11126
11127 template <typename T>
11128 operator ParamGenerator<T>() const { // NOLINT
11129 return ValuesIn(MakeVector<T>(MakeIndexSequence<sizeof...(Ts)>()));
11130 }
11131
11132 private:
11133 template <typename T, size_t... I>
11134 std::vector<T> MakeVector(IndexSequence<I...>) const {
11135 return std::vector<T>{static_cast<T>(v_.template Get<I>())...};
11136 }
11137
11138 FlatTuple<Ts...> v_;
11139};
11140
11141template <typename... T>
11142class CartesianProductGenerator

Callers

nothing calls this directly

Calls 1

ValuesInFunction · 0.85

Tested by

no test coverage detected