Commit d9bc3c66 authored by Elias Dohmen's avatar Elias Dohmen 🎓

Tree::isRoot const

parent 07584c24
Pipeline #734 passed with stages
in 1 minute and 34 seconds
......@@ -137,7 +137,7 @@ public:
* \brief Returns whether the node is root.
* @return true if the node is the root, else false.
*/
bool isRoot()
bool isRoot() const
{
return parent_ == nullptr;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment