C++11 new features in the auto and decltype differences and contact one. Auto introduction programming often requires the value of the expression to be paid to the variable, you need to declare the variable when the variable is clearly known what type. It's not that easy (especially in templates) to do that, but sometimes it doesn't. To solve this problem, the c++11 new standard introduces the auto type specifier, which allows the compiler to parse the type that the expression belongs to. is different from the original one that only corresponds to a specific type specifier (for example, int). Auto lets the compiler use the initial values for type deduction. To get the type that defines the variable, so the variable that auto defines must have an initial value. The result of the addition of Val_1 and val_2 can infer the type of item auto item = Val_1 + Val_2;//item type initialized to Val_1 + val_2 after the added type, the value is Val_1+val_
1. c++11 the auto and Decltype differences and links in new features
Introduction: This article mainly introduces the c++11 new characteristics of the auto and Decltype differences and links related information, the need for friends can refer to the following
2. Analysis of rvalue reference, transfer semantics and perfect forwarding in c++11
Introduction: Moving semantics is an important concept for c++11, and I have been indefinitely this concept for a long time. Recently flipped data feeling suddenly enlightened, so by the way to record the c++11 in the right-hand reference, transfer semantics and perfect forwarding, convenient for everyone to access the reference
3. Details c++11 final and override specifiers
Introduction: The following small series for everyone to bring a detail c++11 final and override specifier. Small series feel very good, now share to everyone, also for everyone to make a reference. Let's take a look at it with a little knitting.
4. C++11 smart pointer for new features (SHARED_PTR/UNIQUE_PTR/WEAK_PTR)
Introduction: This article mainly introduces the c++11 new features of smart pointers, including shared_ptr, Unique_ptr and weak_ptr Basic use, interested in small partners can refer to
5. Learn the use of lambda expressions in C + + with c++11 new features
Introduction: This article mainly introduces the use of lambda expression in C + +, the introduction of lambda expression is one of the highlights of c++11, while the text also involved in the C++14 standard about the lambda content, the need for friends can refer to the following
6. Use of Auto for c++11 new features
Summary: People familiar with scripting languages know that many scripting languages introduce "type auto-inference" techniques: python, for example, can declare variables directly and type check at run time. With the release of the C++11 standard, the C + + language also introduces the ability to automatically infer types. This article mainly introduces the new features of the c++11 use of auto, the need for friends can reference.
7. A brief analysis of the lambda expression of c++11 new features
Summary: C++11 has added many features, and lambda expressions are one of them, and this article covers the more important lambda expressions in the c++11 update. Friends who are in need can refer to the study.
8. The Great God for you analysis of Go, Java, C and other mainstream programming languages
Introduction: This paper mainly analyzes C, c++98, c++11, Java and Go, mainly discusses the key ability of language. In the course of the discussion, we will combine the communication between Huawei's language programming experts and the backbone developers in Huawei Telecom software, abandon the contention of language preference or the language sect, and discuss the characteristics and shortcomings of each language in an objective and impartial way, as an objective reference for language selection.
"Related question and answer recommendation":
Multi-thread-c++11 the thread library, why there is no Start method.
Returns a reference to an array in the C++11-c++ function
is the C + + standard used in sailfsh-sailfish development c/c++98?
Syntax-c++11 the member function of the thread call object
Some questions about C++11-const (C++primer Fifth Edition)