Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. How to quickly find a value use std::map

How to quickly find a value use std::map

Scheduled Pinned Locked Moved The Lounge
questiondatabasecryptographyperformancetutorial
6 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sanddriftye
    wrote on last edited by
    #1

    In CMap, as I know, there's a function called Lookup to quickly find a value by key, which use hash index to improve the speed. But there's no such function in std::map. How can I doing this?:((

    I J 2 Replies Last reply
    0
    • S sanddriftye

      In CMap, as I know, there's a function called Lookup to quickly find a value by key, which use hash index to improve the speed. But there's no such function in std::map. How can I doing this?:((

      I Offline
      I Offline
      Imran Farooqui
      wrote on last edited by
      #2

      sanddriftye wrote: How can I doing this? By asking your question in The Soapbox[^], because this is not the correct forum to ask this question. Thanks.

      N 1 Reply Last reply
      0
      • S sanddriftye

        In CMap, as I know, there's a function called Lookup to quickly find a value by key, which use hash index to improve the speed. But there's no such function in std::map. How can I doing this?:((

        J Offline
        J Offline
        Jon Sagara
        wrote on last edited by
        #3

        Ask in the Visual C++[^] forum.

        Jon Sagara

        You know the world is off tilt, when the best rapper is a white guy, the best golfer is a black guy, the tallest basketball player is Chinese, and Germany doesn't want to go to war. -- Charles Barkley

        J 1 Reply Last reply
        0
        • J Jon Sagara

          Ask in the Visual C++[^] forum.

          Jon Sagara

          You know the world is off tilt, when the best rapper is a white guy, the best golfer is a black guy, the tallest basketball player is Chinese, and Germany doesn't want to go to war. -- Charles Barkley

          J Offline
          J Offline
          Jorgen Sigvardsson
          wrote on last edited by
          #4

          Nooooooooooooooooooo.. in the ATL/STL/WTL forum of course! :rolleyes: :-D -- Some of them wants to abuse you Some of the wants to be abused by you

          T 1 Reply Last reply
          0
          • J Jorgen Sigvardsson

            Nooooooooooooooooooo.. in the ATL/STL/WTL forum of course! :rolleyes: :-D -- Some of them wants to abuse you Some of the wants to be abused by you

            T Offline
            T Offline
            Taka Muraoka
            wrote on last edited by
            #5

            The Work Issues/Certification/Resumes gets about one post every couple of months. Maybe we should send the poor sod there instead...


            Software is everything. It also sucks. Charles Fishman [^] Awasu 1.0.2 (beta)[^]: A free RSS reader with support for Code Project.

            1 Reply Last reply
            0
            • I Imran Farooqui

              sanddriftye wrote: How can I doing this? By asking your question in The Soapbox[^], because this is not the correct forum to ask this question. Thanks.

              N Offline
              N Offline
              Nish Nishant
              wrote on last edited by
              #6

              Imran Farooqui wrote: By asking your question in The Soapbox[^], because this is not the correct forum to ask this question. :laugh: :laugh: :laugh: Nish


              Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups