eos icon indicating copy to clipboard operation
eos copied to clipboard

multi_index vs flat_map

Open mamidi1211 opened this issue 8 years ago • 2 comments

what is the difference between multi_index and flat_map. Also, is there any documentation or tutorial where we can find these kind of definitions. ?

mamidi1211 avatar Jul 12 '18 10:07 mamidi1211

flatmap is a sorted vector. It is kept on contiguous memory and supports one key multi_index container can have multiple indices associated with it and queryable based on it.

dhaneshvb avatar Jul 12 '18 10:07 dhaneshvb

flat_map is documented here. It's part of boost. multi_index has doxygen documentation, which you can generate from the source code yourself. The pregenerated version available here is currently out of date, but might be a little helpful.

jgiszczak avatar Jul 12 '18 22:07 jgiszczak