diff --git a/lib/fort.hpp b/lib/fort.hpp index e34933f..5276ea2 100644 --- a/lib/fort.hpp +++ b/lib/fort.hpp @@ -945,6 +945,24 @@ public: return (*this)[row_idx][col_idx]; } + size_t + cur_col() + { + return ft_cur_col(table_); + } + + size_t + cur_row() + { + return ft_cur_row(table_); + } + + class table_cell + cur_cell() + { + return cell(cur_row(), cur_col()); + } + /** * Get row. * diff --git a/src/fort.hpp b/src/fort.hpp index e34933f..5276ea2 100644 --- a/src/fort.hpp +++ b/src/fort.hpp @@ -945,6 +945,24 @@ public: return (*this)[row_idx][col_idx]; } + size_t + cur_col() + { + return ft_cur_col(table_); + } + + size_t + cur_row() + { + return ft_cur_row(table_); + } + + class table_cell + cur_cell() + { + return cell(cur_row(), cur_col()); + } + /** * Get row. *