|
Boost : |
Subject: Re: [boost] Heads up - string_ref landing
From: Olaf van der Spek (ml_at_[hidden])
Date: 2012-12-12 08:22:30
On Wed, Dec 12, 2012 at 1:55 PM, Rob Stewart <robertstewart_at_[hidden]> wrote:
>> Would it mean !empty() or !!begin()?
>
> The former certainly.
> string_ref's are never assumed to be null terminated (which is why I provide data() and not c_str()), so the latter is not sensible.
It isn't !!*begin(), so null termination isn't related.
-- Olaf
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk