is vector<char> ------ a char of type vector or is it vector<char> the whole data type with vector<string> names; is names the name of the vector of stings
--- On Sat, 12/6/08, andrew clarke <[EMAIL PROTECTED]> wrote: From: andrew clarke <[EMAIL PROTECTED]> Subject: Re: [c-prog] vector question To: [email protected] Date: Saturday, December 6, 2008, 6:19 AM On Fri 2008-12-05 22:32:20 UTC-0800, Robert Ryan ([EMAIL PROTECTED] com) wrote: > vector<char> v; is this an empty vector or is it You can call v.empty() to determine that. > vector<char> ; without the v vector<char> is a datatype. You can't call vector<char> .empty(). Your question is equivalent to: int x = 42; // is this value 42? versus: int = 42; // this will never compile [Non-text portions of this message have been removed]
