
8 Jun
2009
8 Jun
'09
2:11 p.m.
On Mon, Jun 8, 2009 at 12:16 AM, Emil Dotchevski <emildotchevski@gmail.com>wrote:
On Sun, Jun 7, 2009 at 10:36 PM, Steven Ross<spreadsort@gmail.com> wrote:
Is there a boolean argument that can be used to identify whether a data type is some form of string that has a [] operator that returns an integer data type (preferably 2 or less bytes in size)?
A portability warning: sizeof(wchar_t) might be more than 2.
Understood. That's why I'll have a corresponding disable_if calling std::sort on those data types. A hybrid sort designed to work efficiently with large characters would be substantially more complicated, and I'm not sure it would be faster than std::sort on real strings.