百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
M

MyTinySTL

> 编程语言
开源

在 C++11 中实现微小的 STL

12.5K stars0 点赞2 次浏览
访问官网GitHub

工具介绍

在 C++11 中实现微小的 STL

MyTinySTL

简介

基于 C++11 的 tinySTL,这是我的第一个项目,使用了中文文档与中文注释,有不规范或不当的地方还请海涵。刚开始是作为新手练习用途,直到现在已经发布了 2.x.x 版本。实现了大部分 STL 中的容器与函数,但仍存在许多不足与 bug 。从 2.x.x 版本开始,本项目会进入长期维护的阶段,即基本不会增加新的内容,只修复发现的 bug。如发现错误,还请在 Issues 中指出,欢迎 Fork 和 Pull requests 改善代码,谢谢!

支持

  • 操作系统
    • linux
    • windows
    • osx
  • 编译器
    • g++ 5.4 或以上
    • clang++ 3.5 或以上
    • msvc 14.0 或以上

需要

  • 使用 cmake 2.8 来构建项目(可选)

运行

如果你想要运行测试,请先阅读 这个 。

  • gcc/clang on linux/osx
  1. 克隆仓库
bash
$ git clone [email protected]:Alinshans/MyTinySTL.git
$ cd MyTinySTL
  1. 构建并运行
bash
$ mkdir build && cd build
$ cmake ..
$ make
$ cd ../bin && ./stltest
  • msvc on windows
  1. 克隆仓库或 Download ZIP
  2. 使用 vs2015(或 vs2017)打开 MSVC/MyTinySTL_VS2015.sln,配置成 Release 模式,(Ctrl + F5)开始执行。

文档

见 Wiki。

测试

见 Test。


Introduction

This is a tinySTL based on C++11, which is my first project for practice. I use the Chinese documents and annotations for convenience, maybe there will be an English version later, but now I have no time to do that yet. Now I have released version 2.0.0. I have achieved the vast majority of the containers and functions of STL, and there may be some deficiencies and bugs. From the version 2.x.x, the project will enter the stage of long-term maintenance, i.e., I probably will not add new content but only fix bugs found. If you find any bugs, please point out that in Issues, or make a Pull requests to improve it, thanks!

Supported

  • os
    • linux
    • windows
    • osx
  • complier
    • g++ 5.4 or later
    • clang++ 3.5 or later
    • msvc 14.0 or later

Required

  • Use cmake 2.8 to build this project (Optional)

Run test

If you want to run the test, please read this first.

  • gcc/clang on linux/osx
  1. git clone
bash
$ git clone [email protected]:Alinshans/MyTinySTL.git
$ cd MyTinySTL
  1. build and run
bash
$ mkdir build && cd build
$ cmake ..
$ make
$ cd ../bin && ./stltest
  • msvc on windows
  1. git clone or Download ZIP
  2. use vs2015(or vs2017) open the file MSVC/MyTinySTL_VS2015.sln, configured in Release, run this project(Ctrl + F5).

Documents

See Wiki.

Test

See Test.

Issues· 70 开放

查看全部 Issues在 GitHub 打开
  • #193

    Mit

    更新于 2026年7月18日
  • #192

    util.h 中 pair 构造函数的重载问题

    更新于 2026年4月28日
  • #190

    CMake 更新

    更新于 2026年2月13日
  • #188

    hhhhh

    更新于 2025年12月18日
  • #187

    雅斯托商业中心

    更新于 2025年12月8日
  • #186

    YASTOBUSINESSHUB25

    更新于 2025年12月8日
  • #184

    关于uninitialized.h异常处理问题

    更新于 2025年10月18日
  • #183

    我的项目 1

    更新于 2025年9月21日
  • #182

    游戏制作记录

    更新于 2025年9月16日
  • #180

    提示器 app

    更新于 2025年8月10日

> 标签

C++algorithmcppcpp-librarycpp11

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月28日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言