|
Boost : |
From: Tom Widmer (tom_usenet_at_[hidden])
Date: 2004-03-01 09:07:49
On Mon, 01 Mar 2004 13:32:12 +0100, Roland Richter
<roland_at_[hidden]> wrote:
>Boosters,
>
> I want to write a function which compares two shared_array's
> element-wise (operator==() compares for pointer equality).
>
> How to get the number of elements a given shared_array contains?
> At first glance there seems to be no possibility; am I missing
> something?
You can't do it (just as with ordinary pointers), at least not without
resorting to platform specific hacks. You probably want std::vector.
Tom
-- C++ FAQ: http://www.parashift.com/c++-faq-lite/ C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk