Created
December 22, 2017 15:12
-
-
Save dimka11/e7f7b394fbe3f2cf5a1ee5c5c07e6af6 to your computer and use it in GitHub Desktop.
Iterator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct It | |
{ | |
Matrix *matrix; | |
size_t row; | |
size_t col; | |
}; | |
It *begin (Matrix *matrix) | |
{ | |
It* it = new It(); | |
it->matrix = matrix; | |
it->row = 0; | |
it->col = -1; | |
return it; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment