www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19412] New: std.algorithm.cmp with default ordering can use


          Issue ID: 19412
           Summary: std.algorithm.cmp with default ordering can use memcmp
                    for all unsigned types that are big-endian or have
                    size 1 (instead of just char)
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: n8sh.secondary hotmail.com

Currently memcmp is just used for char[], but it can logically be used for any
unsigned type that either has a size of 1 byte or is big-endian. This applies
only when the default ordering is used.

Nov 19 2018