Giter Club home page Giter Club logo

Comments (9)

jeaye avatar jeaye commented on July 30, 2024

On Sat, May 28, 2016 at 08:08:42PM -0700, Kartik Singhal wrote:

$ man std::ref
No manual entry for std::ref

while

$ man -k std::ref
std::ref,std::cref(3), std::ref(3), std::cref(3) - std::ref,std::cref
std::reference_wrapper(3) - std::reference_wrapper
std::reference_wrapper::get,std::reference_wrapper::operatorT&(3), std::reference_wrapper::get(3), std::reference_wrapper::operatorT&(3) - std::reference_wrapper::get,std::reference_wrapper::operatorT&
std::reference_wrapper::operator()(3) - std::reference_wrapper::operator()
std::reference_wrapper::operator=(3) - std::reference_wrapper::operator=
std::reference_wrapper::reference_wrapper(3) - std::reference_wrapper::reference_wrapper

Hey there. The std::ref is grouped with std::cref on cppref, so they're
grouped automatically here, too. You can tell by reading the first line
of the man -k std::ref output, after the dash.

You need to run: man std::ref,std::cref

from stdman.

k4rtik avatar k4rtik commented on July 30, 2024

@jeaye yes, I figured that out, but it reduces the utility of man page. It would be awesome and save some keystrokes if one could just do a man std::ref or man std::cref and reach the same man page. Most C-related functions allow that, e.g. see man getc and man getchar.

from stdman.

jeaye avatar jeaye commented on July 30, 2024

Agreed!

from stdman.

k4rtik avatar k4rtik commented on July 30, 2024

More annoyance when even search doesn't work:

$ man -k std::cin
std::cin: nothing appropriate.
$ man std::cin std::wcin
No manual entry for std::cin
No manual entry for std::wcin
$ man std::cin,std::wcin # works

from stdman.

jeaye avatar jeaye commented on July 30, 2024

On Tue, Jun 21, 2016 at 11:41:11AM -0700, Kartik Singhal wrote:

More annoyance when even search doesn't work:

$ man -k std::cin
std::cin: nothing appropriate.
$ man std::cin std::wcin
No manual entry for std::cin
No manual entry for std::wcin
$ man std::cin,std::wcin # works

Searching should work, and the merging of those is a known issue (cppref
merges them into one page, so they end up as one man page). Have you run
sudo updatedb, as the install process suggests? Without it, your
searches won't work.

from stdman.

k4rtik avatar k4rtik commented on July 30, 2024

@jeaye oh yes, you are right. I recently installed stdman on a new Linux machine and probably missed to run the sudo mandb step (not updatedb). Works fine now. Thanks!

from stdman.

jeaye avatar jeaye commented on July 30, 2024

On Tue, Jun 21, 2016 at 01:21:19PM -0700, Kartik Singhal wrote:

@jeaye oh yes, you were right. I recently installed stdman on a new Linux machine and probably missed to run the sudo mandb step (not updatedb). Works fine now. Thanks!

Ah, right my mistake. I keep it in the install process for people like
me, who forget the right commands all the time. :)

from stdman.

rampion avatar rampion commented on July 30, 2024

As a workaround, some versions of man allow you to use * for globbing, so you can do man std::ref\*.

from stdman.

k4rtik avatar k4rtik commented on July 30, 2024

Closing this as things that I complained about seem to be working find now. 😄

from stdman.

Related Issues (20)

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.