www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21695] New: Add three-way comparison function to std.functional

https://issues.dlang.org/show_bug.cgi?id=21695

          Issue ID: 21695
           Summary: Add three-way comparison function to std.functional
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: snarwin+bugzilla gmail.com

std.functional already contains the two-way comparison functions lessThan,
greaterThan, and equalTo. Since D supports three-way comparison natively via
opCmp, it should have a three-way comparison function too.

--
Mar 09