Change RBTree to use C++17 features

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 26
    • Affects Version/s: None
    • Component/s: hotspot
    • b17

      C++17 lets us simplify the red-black tree's metaprogramming:

      - Replace the std::true_type/std::false_type traits used to detect comparator / verifier signatures with std::is_invocable_r(_v).

      - Drop most of the SFINAE overloads and merge identical code paths with if constexpr.

      This removes boilerplate, shortens the headers, and yields clearer compile-time errors without changing external behaviour.

            Assignee:
            Casper Norrbin
            Reporter:
            Casper Norrbin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: