Boost logo

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:

> 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.


C++ FAQ:

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