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

Add logical operations on types

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 16
    • Fix Version/s: 16
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b09

      Description

      C++17 adds some types for performing logical operations on other types. These types can simplify some metaprogramming code. It would be useful to have these operations available now, before we are using C++17.

      The new types are

      std::bool_constant<bool v>
      std::conjunction<typename... T>
      std::disjunction<typename... T>
      std::negation<typename T>

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kbarrett Kim Barrett
              Reporter:
              kbarrett Kim Barrett
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: