Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2005-08-03 12:33:41

Andreas Huber <ahd6974-spamgroupstrap_at_[hidden]> writes:

> David Abrahams <dave <at>> writes:
>> > - size
>> > - empty
>> > - at
>> ?? list<> doesn't support that!
> You mean at? I've had another look an I am positive that it must support it
> somehow. I'm not including any other containers than mpl::list! At least for
> 1.32. I haven't tried with 1.33 yet.

Well, if list<> supports at<> it's an extension. It certainly isn't
O(1). mpl::list is not a random access sequence. Ah, I see that at<>
is using advance<>, which is why it "works." I wonder if we actually
ought to be causing a compilation error in this case.

Dave Abrahams
Boost Consulting

Boost list run by bdawes at, gregod at, cpdaniel at, john at