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

Function SafePtrDiff

Archive/releases/5/SafeInt_3013p.cpp:6030–6033  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6028// Used to squelch warnings
6029template <typename P>
6030SafeInt<ptrdiff_t, SafeIntDefaultExceptionHandler> SafePtrDiff(const P* p1, const P* p2)
6031{
6032 return SafeInt<ptrdiff_t, SafeIntDefaultExceptionHandler>( p1 - p2 );
6033}
6034
6035// Externally defined functions for the case of U op SafeInt< T, E >
6036template < typename T, typename U, typename E >

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected