boost::redis::resp3::flat_tree::clear

Clears the tree so it contains no nodes.

Synopsis

void
clear() noexcept;

Description

Calling this function removes every node, making get_view return empty and get_total_msgs return zero. It does not modify the object's capacity.

To re‐use a flat_tree for several requests, use clear() before each async_exec call.

Object lifetimes

References to the nodes and strings in *this are invalidated.

Exception safety

No‐throw guarantee.

Created with MrDocs