In this chapter we shall see below topics: 1. Class template with overloaded operators 2. Template Inheritance 1. Class template with overloaded operators It is possible to use operator overloading with class template. Below example will show how to achieve the same. Example: #include <iostream> // …
In this tutorial we shall learn about below topics 1. Introduction to Function template 2. Syntax for function template: 3. Example for simple function template 4. Function Template with more arguments 5. Overloading function template 6. Recursion with function template 1. Introduction to Function template …
In this chapter we shall learn about below topics: 1. Introduction 2. Declaring namespaces 3. Accessing namespace using “using” directive 4. The global namespace 5. The std namespace 6. Nested namespaces 7. Inline namespaces (C++ 11) 8. Namespace aliases 9. Anonymous or unnamed namespaces 10. Discontiguous …