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

Method add

include/covscript/impl/type_ext.hpp:223–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221
222template <typename T>
223cs_impl::operators::result cs_impl::operators::handler<T>::add(void *lhs, void *rhs)
224{
225 any result = cs::operators::add(*static_cast<const T *>(lhs), *static_cast<const any *>(rhs));
226 any::proxy *pxy = nullptr;
227 std::swap(result.mDat, pxy);
228 return result::from_ptr(pxy);
229}
230
231template <typename T>
232cs_impl::operators::result cs_impl::operators::handler<T>::sub(void *lhs, void *rhs)

Callers 3

operator newMethod · 0.45
operator newMethod · 0.45
operator newMethod · 0.45

Calls 3

addFunction · 0.85
from_ptrFunction · 0.85
swapFunction · 0.50

Tested by

no test coverage detected