C++C++11C++14C++17Learn C++SyntaxTemplates

Learn What is Template Specialization in C++

One of the great features of modern C++ is templates. A template is a simple and very powerful statement in C++ that defines the operations of a class or function. Template Specialization is used to get a special behavior from a template declaration for a particular data type. In this article, we will explain Template Specialization with C++ examples which can be used by a professional C++…
Read more
C++C++17Learn C++SyntaxTemplates

Learn What Is Template Instantiation in C++

One of the great features of modern C++ is templates. A template is a simple and very powerful statement in C++ that defines the operations of a class or function, and Template Instantiation is to create a new definition of a function, class, or member of a class from a template declaration with template argument types. In this article, we will explain Template Instantiation in C++ examples…
Read more
C++C++11C++14C++17Learn C++Templates

Learn To Export And Import Template Members From A DLL Or A Package In C++

The ability to create and use Templates is one of the great features of modern C++. The declaration of a template function or template class needs to be sufficiently flexible to allow it to be used in either a dynamic link library (shared library) or an executable file. In this article, we will explain how to export and import a template member function from a DLL or package in C++ with an…
Read more
C++C++17Introduction to C++IteratorsLearn C++Syntax

What Are The Differences Between Vector And Array In C++?

C++ has really great features that come with its modern libraries. One of the most used and very useful things is std::vector. If you know arrays in C and C++, vectors are a modern and very flexible form of arrays in C++, maybe we can say they are like modern linked lists. If you want to use arrays there is also std:::array. Both can be used together with an appropriate C++ build tool that…
Read more