Boost logo

Boost :

Subject: Re: [boost] identifying a string type
From: Steven Ross (spreadsort_at_[hidden])
Date: 2009-06-08 10:11:40


On Mon, Jun 8, 2009 at 12:16 AM, Emil Dotchevski
<emildotchevski_at_[hidden]>wrote:

> On Sun, Jun 7, 2009 at 10:36 PM, Steven Ross<spreadsort_at_[hidden]> 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.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk