template keyword

C++: Templates

C++ Templates are used for writing generic programming. C++ allows to define function templates and class templates. In C++, we use template keyword to write generic programming. The syntax of the template declaration starts with template<class T> Where template is the keyword which┬áindicates the particular function or class is a generic function or class. Here […]

Scroll to top