Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8367536

Change RBTree to use C++17 features

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • 26
    • None
    • hotspot

      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.

            cnorrbin Casper Norrbin
            cnorrbin Casper Norrbin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: