Reputation: 1633
For example,how do you man std::sort
?
My tries seems not on the right track.
UPDATE
yum install libstdc++-docs
gives me No package libstdc++-docs available
Upvotes: 10
Views: 4359
Reputation: 20763
First install the man pages as the others suggested.
Then a nice workflow with man is to use the -k arg, since -k is "search for".
So if we take a general example with the classical c function printf (since it is ambiguous)
$ man -k printf
...
printf (1) - format and print data
printf (1posix) - write formatted output
printf (3) - formatted output conversion
printf (3posix) - print formatted output
...
Then you can see the c functions as 3 and 3posix and the shell command as 1 and 1posix. And since we would like to read about the c function.
$ man 3posix printf
So in your case you should be able to search for your lib and then read it. (if it is installed that is).
Hope it clarifies some part of your question.
Upvotes: -1
Reputation: 37172
Do you have man pages installed?
sudo apt-get install manpages-dev glibc-doc
sudo apt-get install libstdc++6-4.4-doc
Where are the man pages for C++?
Whatever you are doing should work if man pages are installed properly. see here
Installing these packages for your distro won't be very difficult. :-)
Upvotes: 3
Reputation: 64223
As far as I know, c++ functions are not included by default in man pages in any linux distribution. You have to use manually install them with :
yum install man-pages libstdc++-docs
Upvotes: 3