[A] Add functions to check if table is empty to the API
This commit is contained in:
17
src/fort.hpp
17
src/fort.hpp
@@ -1012,7 +1012,7 @@ public:
|
||||
* Column number of the current cell.
|
||||
*/
|
||||
size_t
|
||||
cur_col()
|
||||
cur_col() const noexcept
|
||||
{
|
||||
return ft_cur_col(table_);
|
||||
}
|
||||
@@ -1024,11 +1024,24 @@ public:
|
||||
* Row number of the current cell.
|
||||
*/
|
||||
size_t
|
||||
cur_row()
|
||||
cur_row() const noexcept
|
||||
{
|
||||
return ft_cur_row(table_);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if table is empty.
|
||||
*
|
||||
* @return
|
||||
* true - table is empty
|
||||
* false - some data has been inserted
|
||||
*/
|
||||
bool
|
||||
is_empty() const noexcept
|
||||
{
|
||||
return ft_is_empty(table_);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get current cell.
|
||||
*
|
||||
|
Reference in New Issue
Block a user