By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,507 Members | 1,200 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,507 IT Pros & Developers. It's quick & easy.

What is the nameless objects in C++

P: 1
I want to find what is the nameless objects in any body knows????
Aug 3 '07 #1
Share this Question
Share on Google+
1 Reply


Meetee
Expert Mod 100+
P: 931
I want to find what is the nameless objects in any body knows????
Nameless object is written as
Expand|Select|Wrap|Line Numbers
  1. foo(MyClass("abc"));
which is faster than our regular objects

Expand|Select|Wrap|Line Numbers
  1. MyClass x("abc");
  2. foo(x);
because, in the first case, the parameter and the object share memory.

Regards
Aug 3 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.