Changes

Jump to: navigation, search

Team Darth Vector

105 bytes added, 20:22, 16 December 2017
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