Skip to content

Era2016/MyTinySTL

Repository files navigation

MyTinySTL

Build Status Build Status Release License Chat

简介

基于 C++11tinySTL,并使用中文文档与中文注释,作为新手练习用途。实现了大部分 STL 中的容器与函数,但仍存在许多不足与 bug 。如发现错误,还请在 Issues 中指出,欢迎 ForkPull requests 改善代码,谢谢!

支持

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

需要

  • cmake 2.8 (使用g++/clang++编译)

运行

  • linux/osx
  1. git clone
$ git clone [email protected]:Alinshans/MyTinySTL.git
$ cd MyTinySTL
  1. 构建并运行
$ mkdir build && cd build
$ cmake ..
$ make
$ cd ../bin && ./stltest
  • windows
  1. git clone 或 Download ZIP
  2. 使用 vs2015(或 vs2017)打开 MyTinySTL.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. I have achieved the vast majority of the containers and functions of STL, and there may be some deficiencies and bugs. If you find that, please point out that in Issues, or make a Pull requests to improve it, thinks!

Supported

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

Required

  • cmake 2.8 (if you build with g++/clang++)

Run test

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

Documents

See Wiki.

Test

See Test.

About

Achieve a tiny STL in C++11

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 99.8%
  • CMake 0.2%