Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to view the built-in documentation in C++?

Tags:

c++

stl

I just started to learn C++ this month.

In Python, I can view the documentation of a built-in function (for example, str.find) by using help(str.find).

However, I've no idea about how to view the documentation of std::find in <algorithm>, for example.

Does anyone have ideas about a quick way to look up documentation of a function in C++?

like image 312
Hanfei Sun Avatar asked Dec 05 '25 06:12

Hanfei Sun


1 Answers

C++ doesn't have built-in documentation like Python.

The most comprehensive online reference guide is C++ reference, which covers the last three standards. This is not the top hit on most search engines but the top hit is full of inaccuracies and should be avoided.

You can also download archives of the site for offline viewing (English link).

Does anyone have ideas about a quick way to look up documentation of a function in C++?

In Google Chrome, I have a search engine set up with the keyword "cpp" and the URL "http://en.cppreference.com/mwiki/index.php?title=Special%3ASearch&search=%s" so that I can type cpp std::find in the address bar to find details of std::find in my browser.

like image 173
Johnsyweb Avatar answered Dec 07 '25 01:12

Johnsyweb



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!