Interview Question

What is the STL?

The STL style combines generic containers, iterators, and algorithms.

💡 Concept ✅ Quick Revision 🧠 C++

Answer

STL commonly refers to the C++ standard library’s generic containers, iterators, algorithms, and function objects. • Containers store values using defined ownership and complexity rules. • Iterators connect algorithms to sequences. • The full C++ standard library also includes facilities beyond the original STL design.

💡 C++ Example

#include <algorithm> #include <vector> std::vector<int> values{3, 1, 2}; std::sort(values.begin(), values.end());

⚡ Quick Revision

The STL style combines generic containers, iterators, and algorithms.