Changes

Jump to: navigation, search

Team Darth Vector

4 bytes added, 19:23, 16 December 2017
m
Generic Programming
==Generic Programming==
Generic Programming is a an objective when writing code to make algorithms reusable and with the least amount of specific code. Intel describes generic programming as "''writing the best possible algorithms with the least constraints''". An example of generic code is STL's templating functions which provide generic code that can be used with many different types without requiring much specific coding for the type(an addition template could be used for int, double, float, short, etc without requiring re-coding). A non-generic library requires types to be specified, meaning more type-specific code has to be created.
[[File:gputemplates.PNG |thumb|center|600px| An example of generic coding]]
129
edits

Navigation menu