How to get C ++ man pages on os x?

In Ubuntu, after installing libstdC ++ 6-xx-doc, documents are available through man, for example, for libstdC ++ - 4.8-doc:

man std::list
man std::weak_ptr
man std::ios_base

Is it possible to install man pages for C ++ (using brew or any other means) on OSX? The reason for the special requirement for man pages is that I can access them from vim using SHIFT-K.

Note. I am using g ++ version for Xcode:

snowch$ g++ -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.5.0
Thread model: posix
+4
source share
1 answer

You can install these man pages from here . Just run the following commands:

$ git clone https://github.com/jeaye/stdman
$ cd stdman
$ ./configure
$ make install # as a user with appropriate permissions to install
+5
source

All Articles