sanisizer
Sanitize sizes to avoid integer overflow
Loading...
Searching...
No Matches
nd_offset.hpp File Reference

Offsets for accessing N-dimensional arrays. More...

#include <type_traits>

Go to the source code of this file.

Namespaces

namespace  sanisizer
 Sanitize sizes to avoid integer overflow.
 

Functions

template<typename Size_ , typename FirstIndex_ , typename FirstExtent_ , typename SecondIndex_ , typename... Remaining_>
constexpr Size_ sanisizer::nd_offset (FirstIndex_ x1, FirstExtent_ extent1, SecondIndex_ x2, Remaining_... remaining)
 

Detailed Description

Offsets for accessing N-dimensional arrays.