Linux man C + + library functions

Source: Internet
Author: User

By default, Linux is man is not able to consult C + + standard library functions, this is inconvenient, there is no way to direct the man C + + standard library functions?
Of course there is, but to do their own hands, to be clothed!

1. Download and install Manpages

If the Linux under Man is not the standard C-language function, it is because there is no manpages, you can install it yourself!

yum install manpages

This approach does not solve the C + + standard library function query problem, we need to download the relevant man page ourselves

  • C + + man pages:ftp://gcc.gnu.org/pub/gcc/libstdc++/doxygen/(no FQ to access, except for the Great Wall of the pit daddy)
  • Github:https://github.com/jimmy-nie/vim.git (prevent the above URL from not going)

Note, be sure to download libstdc++ xxxxxx.man.tar.bz2 , because this is the real man pages, it is recommended to download the latest version, support C++11/14 and other standards

After the download is complete, unzip the command:

tar -jxvf libstdc++-man.4.4.0.tar.bz2

After the decompression is complete, the extracted content is copied to /usr/share/man/man3 , note, do not overwrite the original MAN3 folder!

2. Querying C + + library functions

To avoid confusion between the operating system and C + +, the currently installed C + + man pages are different from the direct query of the C language standard function, which requires a namespace restriction:

  • Man namespace::function: standard library function query
  • Man Namespace::header: Standard header file Query
  • Man Namespace::class: Queries for classes in some standard libraries

If I want to query string.length usage, I need to query first and man std::string then use the /length search function

Linux man C + + library functions

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.