To generate short, simple code and to avoid duplication of code, C++ provides templates to define the same piece of code for multiple data types. With templates, programmers can define a family of functions or classes that can perform operations on different types of data. Templates comes under the category of meta-programming and auto code generation, where the generated code is not visible in general. Through templates, C++ supports generic programming. Generic programming is a type of programming where the programmer specifies a general code first. That code is instantiated based on the type of parameters that are
The post An introduction to Generic Programming appeared first on Coding Security.
An introduction to Generic Programming
read more
Tidak ada komentar:
Posting Komentar