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

Method caccess

include/covscript/impl/type_ext.hpp:369–375  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

367
368template <typename T>
369cs_impl::operators::result cs_impl::operators::handler<T>::caccess(void *lhs, void *rhs)
370{
371 any result = cs::operators::access(*static_cast<const T *>(lhs), *static_cast<const cs::string *>(rhs));
372 any::proxy *pxy = nullptr;
373 std::swap(result.mDat, pxy);
374 return result::from_ptr(pxy);
375}
376
377template <typename T>
378cs_impl::operators::result cs_impl::operators::handler<T>::access_ref(void *lhs, void *rhs)

Callers

nothing calls this directly

Calls 3

accessFunction · 0.85
from_ptrFunction · 0.85
swapFunction · 0.50

Tested by

no test coverage detected