If Statement with Pointers

Feb 3, 2017 at 4:25am
I'm going to make a new post so it is clear what I am asking
Last edited on Feb 3, 2017 at 7:02pm
Feb 3, 2017 at 4:51am
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 Feb 3, 2017 at 4:51am
Topic archived. No new replies allowed.