MCPcopy Create free account
hub / github.com/covscript/covscript / sub

Method sub

include/covscript/impl/type_ext.hpp:232–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230
231template <typename T>
232cs_impl::operators::result cs_impl::operators::handler<T>::sub(void *lhs, void *rhs)
233{
234 any result = cs::operators::sub(*static_cast<const T *>(lhs), *static_cast<const any *>(rhs));
235 any::proxy *pxy = nullptr;
236 std::swap(result.mDat, pxy);
237 return result::from_ptr(pxy);
238}
239
240template <typename T>
241cs_impl::operators::result cs_impl::operators::handler<T>::mul(void *lhs, void *rhs)

Callers

nothing calls this directly

Calls 3

subFunction · 0.85
from_ptrFunction · 0.85
swapFunction · 0.50

Tested by

no test coverage detected