C++ Templates - Introduction

  • C++ template technology is the core of generic programming, but limited by the technical limitations of the compiler, it had to be born with defects, the syntax is obscure, the error is lengthy, it is difficult to debug, the application layer development is rarely used, and related technical books are scarce, so it is difficult to master big. There are three main classic technical books related to templates, namely Modern C++ Design published in 2001 , C++ Templates published in 2002 , and C++ Template Metaprogramming published in 2004 . The C++ standards based on the three are all C++98. Modern C++ Design involves Loki , which was written by Andrei Alexandrescu , and C++ Template Metaprogramming involves Boost . The two mainly introduce metaprogramming (an application of template technology), and only C++ Templates mainly introduces the template technology of the C++98 standard. As time goes by, the update of the C++ standard gradually fixes some grammatical defects, reduces the mental burden of users, and introduces grammatical sugar and tools

Guess you like

Origin blog.csdn.net/liferecords/article/details/128535904