[PATCH v3 3/7] lib: introduce BPS_TREE_IDENTICAL custom comparator

Vladimir Davydov vdavydov.dev at gmail.com
Mon Feb 25 18:33:05 MSK 2019


On Fri, Feb 22, 2019 at 06:42:28PM +0300, Kirill Shcherbatov wrote:
> Introduce a macro BPS_TREE_IDENTICAL for BPS TREE class. This
> makes possible to define custom comparators for stucture-based
> leafs.
> Previously, a C++ comparison operator "!=" override was used for
> this purpose. Due to the fact that we are not going to rework on
> C++ C-only components of Tarantool like memtx_tree, we needed a
> way to make complex structures comparisons using preprocessor.
> 
> Needed for #3961
> ---
>  src/lib/salad/bps_tree.h       | 82 +++++++++++++++++++++++-----------
>  test/unit/bps_tree_iterator.cc | 16 ++++---
>  2 files changed, 65 insertions(+), 33 deletions(-)

Pushed to 2.1.



More information about the Tarantool-patches mailing list