Home  >  Q&A  >  body text

c++ - std::hash<string>()(...)是什么意思,怎么理解?

高洛峰高洛峰2765 days ago693

reply all(1)I'll reply

  • ringa_lee

    ringa_lee2017-04-17 13:02:55

    hash
    The first pair of brackets generates a hasher, and then the second pair of brackets immediately calls
    which is equivalent to

    std::hash<string> hasher;
    return hasher(sd.isbn());

    reply
    0
  • Cancelreply