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. General Programming
  3. C / C++ / MFC
  4. stl multiple key containers?

stl multiple key containers?

Scheduled Pinned Locked Moved C / C++ / MFC
c++dockerquestion
3 Posts 3 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.
  • F Offline
    F Offline
    fordge
    wrote on last edited by
    #1

    say i have a data that i should be able to lookup using EITHER a int key or a string key..i repeat EITHER.. what kind of container should i be using

    M 1 Reply Last reply
    0
    • F fordge

      say i have a data that i should be able to lookup using EITHER a int key or a string key..i repeat EITHER.. what kind of container should i be using

      M Offline
      M Offline
      markkuk
      wrote on last edited by
      #2

      [boost::multi_index_container](http://www.boost.org/libs/multi_index/doc/index.html)[[^](http://www.boost.org/libs/multi_index/doc/index.html)]

      C 1 Reply Last reply
      0
      • M markkuk

        [boost::multi_index_container](http://www.boost.org/libs/multi_index/doc/index.html)[[^](http://www.boost.org/libs/multi_index/doc/index.html)]

        C Offline
        C Offline
        CP Visitor
        wrote on last edited by
        #3

        markkuk wrote: boost::multi_index_container[^] ... and tell us if you get it started :|:suss:

        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