From 332d7e5ff28d725a5c5b42afad430bb1cf0055d7 Mon Sep 17 00:00:00 2001
From: Giovanni La Mura <giovanni.lamura@inaf.it>
Date: Fri, 22 Sep 2023 15:11:18 +0200
Subject: [PATCH] Add documentation for List.size()

---
 src/sphere/List.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/sphere/List.h b/src/sphere/List.h
index f344328c..d151b9ac 100644
--- a/src/sphere/List.h
+++ b/src/sphere/List.h
@@ -102,6 +102,13 @@ template<class T> class List {
     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() {
     return size;
   }
-- 
GitLab