Is there any cool project written in STL?

I want to learn STL by quickly looking at the real source of the project.

Where can I find a high quality project that uses STL?

+4
source share
5 answers

Notepad ++: only pure Win32 + STL!

Based on Scintilla's powerful editing component, Notepad ++ is written in C ++ and uses the clean Win32 and STL APIs, which provide faster execution speed and smaller program size. By optimizing as many procedures as possible without losing user convenience, Notepad ++ is trying to reduce global carbon dioxide. By using less CPU power, the PC can throttle and reduce power consumption, resulting in a greener environment.

+27
source

Note that STL is partially included in the C ++ standard itself. This makes most of the products listed at http://www.research.att.com/~bs/applications.html interesting. The list is a combination of open source proprietary projects.

+4
source

Not quite the answer to your question, but if you do not know STL / templates, you can find code based on STL, sometimes, er ..., raw.

For example, if the following code ...

std::for_each( s.begin(), s.end(), std::bind1st( std::mem_fun( &MyClass::MyMethod ), this ) ); 

... gives you creeps (it was for me), then you feel bad looking through some intense STL code.

If you want to learn STL, then try and each class / function STL, by definition, will also be a good idea. For example, take http://www.cplusplus.com/reference/stl/ and play both with containers and auxiliary functions separately .

It will be more complex in the header <algorithm> and <functional>, but this is my personal point of view.

+4
source

And add to the answer of Araks. Just like Notepad ++, SQLyog , mySQL-client is another application built using pure Win32 API, as well as Scintilla editing component. therefore it is very light and fast. Source code is available on their website.

+1
source

The Boost library contains the highest quality C ++ code and is heavily dependent on STL.

+1
source

All Articles