Skip to content
Snippets Groups Projects
Commit 332d7e5f authored by Giovanni La Mura's avatar Giovanni La Mura
Browse files

Add documentation for List.size()

parent 2b410b17
No related branches found
No related tags found
No related merge requests found
...@@ -102,6 +102,13 @@ template<class T> class List { ...@@ -102,6 +102,13 @@ template<class T> class List {
return current->value; return current->value;
} }
/*! \fn length()
* \brief Get the number of elements in the list.
*
* Get the number of elements currently stored in the list.
*
* \return int: the size of the list.
*/
int length() { int length() {
return size; return size;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment