MCPcopy Create free account
hub / github.com/Phobos-developers/Phobos / operator()

Method operator()

src/Ext/Script/Body.cpp:846–846  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

844{
845 struct operation_set { int operator()(const int& a, const int& b) { return b; } };
846 struct operation_add { int operator()(const int& a, const int& b) { return a + b; } };
847 struct operation_minus { int operator()(const int& a, const int& b) { return a - b; } };
848 struct operation_multiply { int operator()(const int& a, const int& b) { return a * b; } };
849 struct operation_divide { int operator()(const int& a, const int& b) { return a / b; } };

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected