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

Method cindex

include/covscript/impl/type_ext.hpp:345–351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

343
344template <typename T>
345cs_impl::operators::result cs_impl::operators::handler<T>::cindex(void *lhs, void *rhs)
346{
347 any result = cs::operators::index(*static_cast<const T *>(lhs), *static_cast<const any *>(rhs));
348 any::proxy *pxy = nullptr;
349 std::swap(result.mDat, pxy);
350 return result::from_ptr(pxy);
351}
352
353template <typename T>
354cs_impl::operators::result cs_impl::operators::handler<T>::index_ref(void *lhs, void *rhs)

Callers

nothing calls this directly

Calls 3

indexFunction · 0.85
from_ptrFunction · 0.85
swapFunction · 0.50

Tested by

no test coverage detected