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

Function unary_minus

include/chaiscript/dispatchkit/operators.hpp:162–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160
161 template<typename T>
162 void unary_minus(Module& m)
163 {
164 m.add(chaiscript::fun([](const T &lhs){return -lhs;}), "-");
165 }
166
167 template<typename T>
168 void bitwise_and(Module& m)

Callers

nothing calls this directly

Calls 2

funFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected