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

Add logical operations on types

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 16
    • 16
    • hotspot
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: