Boost logo

Boost :

Subject: Re: [boost] [range] Proposal: addition of front(), back(), at(), operator[]
From: Marshall Clow (mclow.lists_at_[hidden])
Date: 2014-03-23 17:43:24


On Mar 23, 2014, at 12:59 PM, Adam Wulkiewicz <adam.wulkiewicz_at_[hidden]> wrote:

> For SinglePassRange it could iterate over the range and return the reference to the last element

I am not in favor of things that are sometimes silently expensive.

I would much rather this call failed for SinglePassRanges, and if I wanted that, I could write it myself.

— Marshall


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