MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / assign_sum

Function assign_sum

include/chaiscript/dispatchkit/operators.hpp:84–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82
83 template<typename T>
84 void assign_sum(Module& m)
85 {
86 m.add(chaiscript::fun([](T &lhs, const T&rhs)->T&{return lhs += rhs;}), "+=");
87 }
88
89 template<typename T>
90 void prefix_decrement(Module& m)

Callers

nothing calls this directly

Calls 2

funFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected