MCPcopy Create free account
hub / github.com/Dobiasd/FunctionalPlus / operator+

Method operator+

test/numeric_test.cpp:407–410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

405 double x;
406 double y;
407 vec_2d operator+(const vec_2d& rhs) const
408 {
409 return { x + rhs.x, y + rhs.y };
410 };
411 vec_2d operator/(double scalar) const
412 {
413 double scalar_d = static_cast<double>(scalar);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected