MCPcopy Create free account
hub / github.com/apache/singa / ValueArray2

Class ValueArray2

test/gtest/gtest.h:10708–10724  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10706
10707template <typename T1, typename T2>
10708class ValueArray2 {
10709 public:
10710 ValueArray2(T1 v1, T2 v2) : v1_(v1), v2_(v2) {}
10711
10712 template <typename T>
10713 operator ParamGenerator<T>() const {
10714 const T array[] = {static_cast<T>(v1_), static_cast<T>(v2_)};
10715 return ValuesIn(array);
10716 }
10717
10718 private:
10719 // No implementation - assignment is unsupported.
10720 void operator=(const ValueArray2& other);
10721
10722 const T1 v1_;
10723 const T2 v2_;
10724};
10725
10726template <typename T1, typename T2, typename T3>
10727class ValueArray3 {

Callers

nothing calls this directly

Calls 1

ValuesInFunction · 0.85

Tested by

no test coverage detected