STL:常指 C++ 的 Standard Template Library(标准模板库),是一组用于泛型编程的核心组件集合,包含常用容器(如 vector、map)、算法(如排序、查找)和迭代器等。(也可能指其他含义,如 stereolithography “立体光刻”,但最常见于编程语境。)
/ˌɛs tiː ˈɛl/
I learned STL to write cleaner C++ code.
我学习了 STL 来写更简洁的 C++ 代码。
Using STL algorithms, she optimized the program without rewriting the data structures.
她使用 STL 的算法优化了程序,而不必重写数据结构。
STL 是首字母缩略词,来自 Standard Template Library。该名称强调它是“标准的(Standard)”、以“模板(Template)”实现的“库(Library)”,用于支持 C++ 的泛型编程风格。