Programarea generică în C++. Biblioteca STL
Închide
Articolul precedent
Articolul urmator
508 14
Ultima descărcare din IBN:
2024-02-02 10:15
SM ISO690:2012
BÎCLEA, Diana, GHIMPU, Alexandru. Programarea generică în C++. Biblioteca STL. In: Conferinţa ştiinţifică de totalizare a activităţii de cercetare a cadrelor didactice, 3-4 mai 2012, Cahul. Cahul: Tipografia "Centrografic" SRL, 2012, Volumul II, pp. 40-62. ISBN 978-9975-914-77-2.
EXPORT metadate:
Google Scholar
Crossref
CERIF

DataCite
Dublin Core
Conferinţa ştiinţifică de totalizare a activităţii de cercetare a cadrelor didactice
Volumul II, 2012
Conferința "Conferinţa ştiinţifică de totalizare a activităţii de cercetare a cadrelor didactice"
Cahul, Moldova, 3-4 mai 2012

Programarea generică în C++. Biblioteca STL


Pag. 40-62

Bîclea Diana, Ghimpu Alexandru
 
Universitatea de Stat „Bogdan Petriceicu Hasdeu“, Cahul
 
 
Disponibil în IBN: 24 martie 2021


Rezumat

Generic Programming achieved its first major success in C++ with the Standard Template Library, which has now become part of the ANSI/ISO C++ Standard. Since then, most generic libraries are written in C++. C++ provides unique abilities to express the ideas of Generic Programming through templates. Templates provide a form of parametric polymorphism that allows the expression of generic algorithms and data structures. The instantiation mechanism of C++ templates insures that when a generic algorithm or data structure is used, a fully-optimized and specialized version will be created and tailored for that particular use, allowing generic algorithms to be as efficient as their non-generic counterparts. Additionally, the C++ notion of specialization allows compile-time selection among alternative algorithms. The flexibility of C++ templates has made C++ an attractive language for Generic Programming, and Template Metaprogramming.