Re: Large map<srting,string> Initialization

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Tom Browder:

> 1.  Is there a better way to initialize such a map?

You could use a (preferably sorted) array of {"long_string1",
"long_string_val1"} structure values to initialize the map.  Depending
on your needs, you might be able to skip the map altogether and just
use a binary search to locate the correct strings.

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux