Results 1 to 7 of 7

Thread: hash

  1. #1

    Thread Starter
    Hyperactive Member badgers's Avatar
    Join Date
    Sep 1999
    Location
    Madison, WI USA
    Posts
    444

    hash

    In VB I can use dictionaries that have has tables that allow quick access to lookup tables.

    is there something like this for C++
    I am so skeptical, I can hardly believe it!
    PS I am not a 'hyperactive member' I am a cool, calm, and collected member

  2. #2
    Frenzied Member Technocrat's Avatar
    Join Date
    Jan 2000
    Location
    I live in the 1s and 0s of everyones data streams
    Posts
    1,024
    There is a hash_map in the STL I believe. Once Parksie or Cornedbee come along one of them should be able to give you something more. Until then you can use google to find some good resources. One that I looked at in the past was

    http://www.csua.berkeley.edu/~emin/s...code/hash_map/
    MSVS 6, .NET & .NET 2003 Pro
    I HATE MSDN with .NET & .NET 2003!!!

    Check out my sites:
    http://www.filthyhands.com
    http://www.techno-coding.com


  3. #3

    Thread Starter
    Hyperactive Member badgers's Avatar
    Join Date
    Sep 1999
    Location
    Madison, WI USA
    Posts
    444
    thank you
    I am so skeptical, I can hardly believe it!
    PS I am not a 'hyperactive member' I am a cool, calm, and collected member

  4. #4
    Hyperactive Member
    Join Date
    Sep 2001
    Posts
    396
    Originally posted by Technocrat
    There is a hash_map in the STL I believe. Once Parksie or Cornedbee come along one of them should be able to give you something more. Until then you can use google to find some good resources. One that I looked at in the past was

    http://www.csua.berkeley.edu/~emin/s...code/hash_map/
    I have a question.

    I have heard people say hash is not part of the STL yet. But C++ committee may include it in the next standardisation.

    Where is CornedBee and Parksie now?

  5. #5
    Frenzied Member Technocrat's Avatar
    Join Date
    Jan 2000
    Location
    I live in the 1s and 0s of everyones data streams
    Posts
    1,024
    That could very well be true, I am not up on STL like Parksie. I mainly use string, link and vector out of there.
    MSVS 6, .NET & .NET 2003 Pro
    I HATE MSDN with .NET & .NET 2003!!!

    Check out my sites:
    http://www.filthyhands.com
    http://www.techno-coding.com


  6. #6
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    hash_map is part of SGI's implementation of the STL (technically there is no STL anymore, it's all part of the Standard C++ Library, but most people, myself included, refer to the container and algorithm templates as the STL for simplicity).

    http://www.sgi.com/tech/stl/hash_map.html

    Defined in the header hash_map, and in the backward-compatibility header hash_map.h. This class is an SGI extension; it is not part of the C++ standard.
    As a result, it's also in STLport (www.stlport.org).

    Transcendental: It is very possible that some kind of hash-based associative container will be included in the next revision of the standard -- those developed by SGI look fairly likely to be a candidate for that.


    However, that said, I wouldn't recommend completely replacing your Standard Library implementation just yet, so so stick with the more self-contained solutions given above
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  7. #7
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    The VC++7 Standard Library also includes a hash_map and a hash_set container.
    I expect it to be in the standard very soon.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width