Standard template library in c. The c standard template library stl is a set of classes that implement many popular and commonly used algorithms and data structures. The is a table summarizing the methods used with stacks queues vectors and lists at summary below. 2 minutes to read contributors. The c standard template library.
It provides c programmers with a comprehensive set of efficiently implemented tools and facilities that can be used for most types of applications. It provides four components called algorithms containers functions and iterators. The container manages the storage space for its elements and provides member functions to access them either directly or through iterators reference objects with similar properties to pointers. Although the c standard library and the stl share many features neither is a strict superset of the other.
They are implemented as class templates which allows a great flexibility in the types supported as elements. I describe some of things you can do with the stl versions of stacks queues vectors and lists. Standard template library in c standard template library of c tutorial covers all the basics about containers standard library iterators and all important algorithms. Suggest a topic write an article.
The stl provides a set of common classes for c. It is a generalized library and so its components are parameterized. The standard template library stl is a set of c template classes to provide common programming data structures and functions such as lists stacks arrays etc. The standard template library stl is a software library for the c programming language that influenced many parts of the c standard library.
C standard library reference. I define some important and useful ideas in the glossary below. The c standard library is based upon conventions introduced by the standard template library stl and has been influenced by research in generic programming and developers of the stl such as alexander stepanov and meng lee. The standard library is a fundamental part of the c standard.