What is "Generic C"? -
i programming pupil , have encountered references to: generic c, mean plain classic c?
"generic c/c++ implementations commonly used info structures in serious piece of software"
it typically appears in contexts such this; pretty sure have been misreading such references (generic c)/c++ rather than: generic (c/c++). looks referring set of libraries. replies.
generic c/c++ implementations commonly used info structures in serious piece of software"
here, generic , c/c++ distinct adjectives listed in front end of implementations of info structures; equivalently have said "c/c++ generic implementations..." or "generic implementation in c/c++" etc.. info structures such lists , binary trees commonly used arbitrary info types int
, double
, user-defined structures. implementations allow info construction code reused arbitrary types called "generic" implementations.
in c, examples standard library's binary search , quick sort functions, take info without understanding content of memory, pointers functions phone call perform meaningful interpretation of data. see http://www.cplusplus.com/reference/cstdlib/qsort/ , http://www.cplusplus.com/reference/cstdlib/bsearch/
in c++, templates provide improve back upwards generic info structures, standard library hosting generic vectors, lists, (binary tree associative) maps, double-ended queues, stacks, more hash tables termed unordered_maps etc..
c
No comments:
Post a Comment