|
Boost : |
Subject: Re: [boost] identifying a string type
From: Steven Ross (spreadsort_at_[hidden])
Date: 2009-06-08 01:36:57
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)?
I now am using enable_if so that strings and floats are identified and the
proper specialized call is made for them when spread_sort is called by the
user. It would be nice to automatically identify strings too inside
enable_if, so that the user can just call "spread_sort" and the correct
specialized and optimized sorting call will be made depending on the data
type for integers, floats, and strings, and std::sort will be called for
unsupported data types.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk