c++-faq
What is the curiously recurring template pattern (CRTP)?
Without referring to a book, can anyone please provide a good explanation for CRTP with a code 开发者_如何学Goexample?In short, CRTP is when a class A has a base class which is a template specializati[详细]
2023-01-25 11:53 分类:问答Undefined behavior and sequence points
What are "sequence points"? What is the relation between undefined behaviour and sequence points?[详细]
2023-01-25 03:17 分类:问答What is The Rule of Three?
What does 开发者_开发知识库copying an object mean? What are the copy constructor and the copy assignment operator?[详细]
2023-01-25 03:09 分类:问答Rationale of enforcing some operators to be members
There are 4 operators in C++ which can be overloaded but cannot be overloaded as freestanding (aka nonmember, standalone) functions. These operators are:开发者_JAVA百科[详细]
2023-01-20 05:16 分类:问答What are all the member-functions created by compiler for a class? Does that happen all the time?
What are all the member-functions created by compiler for a class? Does that happen all the time? like destructor.[详细]
2023-01-16 07:50 分类:问答What are rvalues, lvalues, xvalues, glvalues, and prvalues?
In C++03, an expression is either an rvalue or an lvalue. In C++11, an expression can be an: rvalue lvalue[详细]
2023-01-14 07:35 分类:问答What are the main purposes of std::forward and which problems does it solve?
In perfect forwarding, std::forward is used to convert the named rvalue references t1 and t2 to unnamed rvalue references. What is the purpose of doing that? How would that affect the called function[详细]
2023-01-13 02:30 分类:问答What is a reference in C?
I have just started C++ and have come across references and have not understood completely. References , as i readis an alternative name for an object.Why use that instead of directly acce开发者_开发[详细]
2023-01-11 18:13 分类:问答What is std::move(), and when should it be used?
What is it? Wh开发者_JAVA技巧at does it do? When should it be used? Good links are appreciated.1. "What is it?"[详细]
2023-01-10 13:45 分类:问答Explain C++ SFINAE to a non-C++ programmer
What is SFINAE in C++? Can you please explain it in words understandable to a programmer who is not versed in C++? Also, what concept in a language like Python does SFINAE correspond开发者_如何转开发[详细]
2023-01-10 10:19 分类:问答
加载中,请稍侯......