Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > STL' Set as variable

Reply
Thread Tools

STL' Set as variable

 
 
Robert
Guest
Posts: n/a
 
      08-17-2005
Hi all,

I want to use STL's Set as variable.
The function type :

set<int> get_set_child(set<int> set_parent) {
do something...
return set_child
}

Is the set_parent variable input as reference(pointer)? If the
set_parent input as value, can I use (set<int> * set_parent) as input?

Best regards,
Robert

 
Reply With Quote
 
 
 
 
Victor Bazarov
Guest
Posts: n/a
 
      08-17-2005
Robert wrote:
> I want to use STL's Set as variable.
> The function type :
>
> set<int> get_set_child(set<int> set_parent) {
> do something...
> return set_child
> }
>
> Is the set_parent variable input as reference(pointer)?


No. Do you see any '&' or '*' in the declaration of the argument?

>If the
> set_parent input as value, can I use (set<int> * set_parent) as input?


Should be able to. Why don't you simply try instead of asking?

V
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Object variable or With block variable not set David C ASP .Net 0 10-09-2007 09:01 PM
"Variable variable name" or "variable lvalue" mfglinux Python 11 09-12-2007 03:08 AM
Object variable or With Block variable not set error =?Utf-8?B?TmV3YmllRGV2?= ASP .Net 0 04-26-2006 03:11 AM
Object variable or With block variable not set Neo Geshel ASP .Net 6 03-23-2006 06:50 AM
How do I scope a variable if the variable name contains a variable? David Filmer Perl Misc 19 05-21-2004 03:55 PM



Advertisments