Coder Social home page Coder Social logo

stl_explorer's Introduction

STL explorer

In C++, including header files is recursive: All sub-includes are also included. This is no different in the C++ standard library (incorrectly but commonly known as STL). Knowing what total includes you get by using #include <algorithm> for example can be useful and is not always easy to find out. For example, it can tell what other headers you can use for "free" since they're already there from your previous includes.

This offers a tiny website to list, forward- and reverse search that information. You can find what total sub-includes a header brings with it, but also where a certain header is included. <vector> for example is included surprisingly often.

Note that includes are not defined in the standard and depend on the implementation (compiler). The information in this tool are based on VS2019 16.11.3 and VS2022 17.0 Preview 4.1 with /std:c++20 and /std:c++latest.

The time cost of standard library includes can be found in the cpp-lit project.

stl_explorer's People

Contributors

s9w avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

stl_explorer's Issues

Explanation of how it was done?

This is a nifty and useful project!

Would it be possible to add more explanations of what you did so that others can reproduce the results (for other implementations)?

Thank you!

Does not open properly on Safari

Cannot search anything, dataset option is empty. Console error is:

[Error] TypeError: source_header.replaceAll is not a function. (In 'source_header.replaceAll("cpp", "c++")', 'source_header.replaceAll' is undefined)
	Global Code (explorer.js:159)

image

My safari version is 13.0.5

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.