Questions tagged [boost-multi-index]

A C++ library which enables the construction of containers maintaining one or more indices with different sorting and access semantics.

248 questions
-1
votes
1 answer

Does erasing an element from one index deletes corresponding entry from second index boost::multi_index

I have this multiindex defined which is taking huge memory due to large number of entries, I want to delete some entries from it on the basis of some decision checking, is that possible? how to achieve? I am doing as following, but getting crash in…
Hemant Kr
  • 61
  • 6
-1
votes
1 answer

how to get index by name from multi index container formed with indices using type hiding

I am trying to make multiple index container using type hiding for indexed_by part. So i start by making the type to be used in container and make some tags struct Log_file_Dur_Sig_F_Map_struct //Duration_Signal_Folder_Map_struct >>>log file…
ahmed allam
  • 377
  • 2
  • 15
-1
votes
1 answer

boost multi index convert index to tag and loop on indexes

I have a template class(CrMultiIndex) that receive a template parameter a definition of boost multi index(GlobalHash).I work with c++14 I need a way to translate index to tag(n_to_tag)? And to loop on indexes in CrMultiIndex ctor or Init…
yaron
  • 439
  • 6
  • 16
-1
votes
1 answer

Multi_index container boost View initialization

class ProcessMaterial { typedef bip::allocator ShmemAllocator; typedef bmi::multi_index_container
Nespl NS3
  • 52
  • 1
  • 9
-1
votes
2 answers

Is there a way to inherit from Boost multi index container in C++?

I'm looking for a way to create a base container class that inherits the functionality of the boost multi index container. I want to be able to add other functions to this base class and create other classes that can use this base class's functions…
-1
votes
1 answer

can't use a const argument to find() method of the boost::multi_index_container

I have a very simple multi index container that indexes members of a class as follow: base class: class AgentInfo { public: Agent * agent; bool valid; AgentInfo(Agent * a_, bool valid = true); AgentInfo(); }; //helper tags used in…
rahman
  • 4,820
  • 16
  • 52
  • 86
-2
votes
1 answer

multi_index container ordered_non_unique is not rearranging the order after updating the key

I have created multi_index container element and updating one of the ordered non unique key without calling modify or update. Will this container rearrange based on the new update value? Sample program: #include…
Ansh
  • 1
  • 1
-3
votes
2 answers

Issues with boost::multi_index

When I try to create a object of this, typedef boost::multi_index_container< ClassX*, //mapped value boost::multi_index::indexed_by< …
quickdraw
  • 247
  • 1
  • 2
  • 12
1 2 3
16
17