c++-faq
What is the copy-and-swap idiom?
What is the copy-and-swap idiom and when should it be used? What problems does it solve? Does it change for C++11?[详细]
2023-01-07 16:31 分类:问答Do the parentheses after the type name make a difference with new?
If \'Test\' is an ordinary class, is there any difference between: Test* test = n开发者_如何学运维ew Test;[详细]
2023-01-04 23:34 分类:问答What is move semantics?
I just finished listening to the Software Engineering radio podcast interview with Scott Meyers regarding C++0x. Most of the new features made sense to me, and I am actually excited about C++0x now, w[详细]
2023-01-04 08:35 分类:问答What's the difference between the terms "source file" and "translation unit"?
What\'s the difference b开发者_如何学运维etween source file and translation unit?From the C++ Standard:[详细]
2022-12-29 11:14 分类:问答What is the point of function pointers?
I have开发者_如何学Python trouble seeing the utility of function pointers. I guess it may be useful in some cases (they exist, after all), but I can\'t think of a case where it\'s better or unavoidabl[详细]
2022-12-25 18:17 分类:问答Why is volatile not considered useful in multithreaded C or C++ programming?
As demonstrated in this answer I recently posted, I seem to be confused about the utility (or lack thereof) of volatile in multi-threaded programming contexts.[详细]
2022-12-24 15:58 分类:问答Can a class member function template be virtual?
I have heard that C++ class member function templates can\'t be virtual.Is this true? If th开发者_Go百科ey can be virtual, what is an example of a scenario in which one would use such a function?Tem[详细]
2022-12-22 00:11 分类:问答Initializing members with members
This is a problem I come across often. The following examples illustrates it: struct A { int m_SomeNumber;[详细]
2022-12-19 17:25 分类:问答What C++ idioms should C++ programmers use? [closed]
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely solicit debate, a[详细]
2022-12-12 01:33 分类:问答Copy constructor and = operator overload in C++: is a common function possible?
Since a copy constructor MyClass(const MyClass&); and an = operator overload MyClass& operator 开发者_如何学编程= (const MyClass&);[详细]
2022-12-11 05:27 分类:问答
加载中,请稍侯......