MCPcopy Create free account
hub / github.com/dcleblanc/SafeInt / TestPtrRef

Function TestPtrRef

Archive/releases/6/TestCompile.cpp:282–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280
281template <typename T>
282void TestPtrRef()
283{
284 SafeInt<T> st;
285 T* pt = st.Ptr();
286 const T* ptc = st.Ptr();
287 const T& tref = st.Ref();
288#if !defined SAFEINT_VS_VERSION
289 const T* ptc2 = &st;
290 T* pt2 = &st;
291#endif
292}
293
294template <typename T>
295void TestUnary()

Callers

nothing calls this directly

Calls 1

PtrMethod · 0.45

Tested by

no test coverage detected