25 Nov 2019

  • November 25, 2019
  • Amitraj
C++ Standered Template Library (STL)

Template can be used to create generic classes and functions that could extend supports for Generic programming.
    -> In order to help the C++ users in generic programming, Alexander Stepanov and Meng Lee of Hewlett packard developed a set of general purpose templatized classes (data structure) and functions (Algorithms) that could be used as a standered approach for sorting and processing data.


->The collection of these Generic classes and functions is called, the Standered template library (STL). The STL has now become a part of ANSI standered C++ class library.


-> STL components which are now part of standered C++ library are defined in the namespace std. we must use the using namespace directive.


         using namespace std;
  to inform the compiler that we intend to use the standered C++ library. All programs use this directive.

Translate

Popular Posts