MCPcopy Create free account
hub / github.com/deathkiller/jazz2-native / prefix

Method prefix

Sources/Shared/Containers/ArrayView.h:331–333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

329 constexpr ArrayView<T> prefix(T* end) const;
330#else
331 template<class U, typename std::enable_if<std::is_convertible<U, T*>::value && !std::is_convertible<U, std::size_t>::value, int>::type = 0> constexpr ArrayView<T> prefix(U end) const {
332 return static_cast<T*>(end) ? slice(_data, end) : nullptr;
333 }
334#endif
335
336 /**

Callers 1

prefixFunction · 0.45

Calls 1

sliceFunction · 0.85

Tested by

no test coverage detected