From 43529b2153561a5df79b68169572a94fc93faedb Mon Sep 17 00:00:00 2001 From: Sergei Shirokov Date: Sat, 24 Aug 2024 15:48:37 +0300 Subject: [PATCH] Latest CAVL v3.1.0 --- lib/cavl/cavl.hpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/cavl/cavl.hpp b/lib/cavl/cavl.hpp index 5389915..ac42c66 100644 --- a/lib/cavl/cavl.hpp +++ b/lib/cavl/cavl.hpp @@ -790,15 +790,16 @@ class Tree final // NOSONAR cpp:S3624 return NodeType::template search(origin_node_, predicate, factory); } - /// The function has no effect if the node pointer is `nullptr`, or node is not in the tree (aka unlinked). - /// It is safe to pass the result of search() directly as the `node` argument: - /// `tree.remove(Node::search(root, search_predicate));` + /// The function has no effect if the node pointer is nullptr, or node is not in the tree (aka unlinked). + /// It is safe to pass the result of search() directly as the node argument: + /// + /// tree.remove(Node::search(root, search_predicate)); + /// /// but it could be done also by direct node removal: - /// ``` + /// /// if (auto* const node = Node::search(root, search_predicate) { /// node->remove(); /// } - /// ``` /// /// Wraps NodeType<>::remove(). ///