|
Boost : |
Subject: Re: [boost] Heads up - string_ref landing
From: Rob Stewart (robertstewart_at_[hidden])
Date: 2012-11-15 20:03:52
On Nov 15, 2012, at 2:19 PM, Marshall Clow <mclow.lists_at_[hidden]> 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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk