-
#include "tensorstore/util/element_pointer.h"
-
template <typename ElementTag>
ElementPointer<ElementTag>
tensorstore::AddByteOffset(const ElementPointer<ElementTag>& x,
Index byte_offset); -
template <typename ElementTag>
ElementPointer<ElementTag>
tensorstore::AddByteOffset(ElementPointer<ElementTag>&& x,
Index byte_offset); Adds a byte offset to an
ElementPointer
type.If
IsShared<ElementTag>
, the returned pointer shares ownership with the original.