GithubHelp home page GithubHelp logo

tinystl's Introduction

TinySTL

这是我自己在学习 SGI-STL 时的练习 (笔记感觉更贴切)

  • 这份练习的特点:

没有写 config.h。 因为它所做的大多数是定义宏,针对不同编译器性能和平台而做的。 加上它,虽然提高了可移植性。 但可能会在某些文件中针对不同情况写不同却相似的代码。 这会使STL看起来臃肿,并让我在阅读或理解时增添额外的负担,甚至摸不着头脑。这和我学习STL的初衷有所不同。

而依照一个性能良好的编译器、用更被广泛采用的方式写下的STL明显会更加简洁,便于我从整体把握其结构,了解其设计理念。

为弥补抹除 config.h 所致使的缺失、和因编译器引起的困惑。 我会把我认为值得注意的地方单独写在一个文件中,而不再在我写的练习中体现它们。

tinystl's People

Contributors

u-73a5 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.