
16 Nov
2012
16 Nov
'12
1:03 a.m.
On Nov 15, 2012, at 2:19 PM, Marshall Clow <mclow.lists@gmail.com> wrote:
I'm about to check in some new functionality into the string_algo library; an implementation of string_ref.
A string_ref is a non-owning reference to a string. It is implemented as a {pointer, length} pair, and is exceedingly useful when parsing, and manipulating strings in "read-only" ways.
I have such a class, too. I'll compare yours with mine to see if there's anything to add (or change :).
The header will be in boost/algorithm/string_ref.hpp, but I welcome discussion about where it should live.
This has nothing to do with string algos, besides offering iterators for use with algos, so it doesn't belong in that library. ___ Rob