60 EXPECTS(p !=
nullptr);
71 FORCEINLINE
static T *
offset(
pointer p, std::ptrdiff_t i)
noexcept {
return p + i; }
108 FORCEINLINE
static T *
offset(
pointer p, std::ptrdiff_t i)
noexcept {
return p + i; }
Macros used in the nda library.
Accessor type of the nda::default_accessor.
static __inline__ T * offset(pointer p, std::ptrdiff_t i) noexcept
Offset the pointer by a certain number of elements.
T * pointer
Pointer type to the data.
T element_type
Value type of the data.
T & reference
Reference type to the data.
static __inline__ reference access(pointer p, std::ptrdiff_t i) noexcept
Access a specific element of the data.
Default accessor for various array and view types.
Accessor type of the nda::no_alias_accessor.
static __inline__ reference access(pointer p, std::ptrdiff_t i) noexcept
Access a specific element of the data.
T & reference
Reference type to the data.
T element_type
Value type of the data.
static __inline__ T * offset(pointer p, std::ptrdiff_t i) noexcept
Offset the pointer by a certain number of elements.
T *__restrict pointer
Restricted pointer type to the data.
Accessor for array and view types with no aliasing.