If Statement with Pointers

I'm going to make a new post so it is clear what I am asking
Last edited on
Assuming array contiguity, just do some pointer arithmetic:
std::div((ptr - mat), width)
It's not entirely clear what everything is in the code snippet you've shown us, but something like that may be close to what you want.
Last edited on
Topic archived. No new replies allowed.