boost::redis::resp3::flat_tree::get_reallocs

Returns the number of memory reallocations that took place in the data buffer.

Synopsis

std::size_t
get_reallocs() const noexcept;

Description

This function returns how many reallocations in the data buffer were performed and can be useful to determine how much memory to reserve upfront.

Exception safety

No‐throw guarantee.

Return Value

The number of times that the data buffer reallocated its memory.

Created with MrDocs