MCPcopy Create free account
hub / github.com/andreasfertig/cppinsights / operator*

Function operator*

tests/ClassOperatorHandler9Test.cpp:44–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42
43template<typename T>
44MyVector<T> operator*(const MyVector<T>& a, const MyVector<T>& b)
45{
46 MyVector<T> result(a.size());
47 for(std::size_t s = 0; s <= a.size(); ++s) {
48 result[s] = a[s] + b[s];
49 }
50 return result;
51}
52
53vec_t Foo(const vec_t& a, const vec_t& b)
54{

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected