#include <nda/accessors.hpp>
template<typename T>
struct nda::no_alias_accessor::accessor< T >
Accessor type of the nda::no_alias_accessor. 
- Template Parameters
 - 
  
  
 
Definition at line 71 of file accessors.hpp.
 | 
| 
using  | element_type = T | 
|   | Value type of the data. 
  | 
| 
using  | pointer = T *__restrict | 
|   | Restricted pointer type to the data. 
  | 
| 
using  | reference = T & | 
|   | Reference type to the data. 
  | 
 | 
| static __inline__ reference  | access (pointer p, std::ptrdiff_t i) noexcept | 
|   | Access a specific element of the data.  
  | 
| static __inline__ T *  | offset (pointer p, std::ptrdiff_t i) noexcept | 
|   | Offset the pointer by a certain number of elements.  
  | 
◆ access()
Access a specific element of the data. 
- Parameters
 - 
  
    | p | Pointer to the data.  | 
    | i | Index of the element to access.  | 
  
   
- Returns
 - Reference to the element. 
 
Definition at line 88 of file accessors.hpp.
 
 
◆ offset()
Offset the pointer by a certain number of elements. 
- Parameters
 - 
  
    | p | Pointer to the data.  | 
    | i | Number of elements to offset the pointer by.  | 
  
   
- Returns
 - Pointer after applying the offset. 
 
Definition at line 97 of file accessors.hpp.
 
 
The documentation for this struct was generated from the following file: