
3 Aug
2005
3 Aug
'05
5:33 p.m.
Andreas Huber <ahd6974-spamgroupstrap@yahoo.com> writes:
David Abrahams <dave <at> boost-consulting.com> 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 www.boost-consulting.com