[prev in list] [next in list] [prev in thread] [next in thread]
List: hpux-cxx-dev
Subject: Re: CXX-DEV: No. of values stored in an strstream object.
From: Martin Sebor <sebor () roguewave ! com>
Date: 2001-11-18 20:27:03
[Download RAW message or body]
mshetty wrote:
>
> Hi,
>
> Is there a way to find the number of values stored in an
> strstream object??
>
> For eg
> int a=10, b=12;
> strstream ss;
> ss << a;
> ss << b;
>
> Here, the no. of values contained in ss is 2.
>
> Don't know much about strstream. Would pcount help??
Streams are not containers, they have no concept of values. Suppose
you insert the string "13 14" into a stream. How many values is it?
One of type const char[] or two ints?
Regards
Martin
_________________________________________________________________
To leave this mailing list, send mail to majordomo@cxx.cup.hp.com
with the message UNSUBSCRIBE cxx-dev
_________________________________________________________________
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic