Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
boost/multi_index_container.hpp
✓ #include <boost/multi_index_container.hpp>
Using Boost.MultiIndex container
#include <boost/multi_index_container.hpp>
#include <boost/multi_index/ordered_index.hpp>
#include <boost/multi_index/identity.hpp>
#include <string>
struct employee {
int id;
std::string name;
};
using namespace boost::multi_index;
typedef multi_index_container<
employee,
indexed_by<
ordered_unique<identity<employee>>
>
> employee_set;
int main() {
employee_set es;
es.insert({1, "John"});
return 0;
}
Debug
Known issues
No known issues recorded.
Audit
Dependencies
No dependency data recorded yet.
Resources
No resource links recorded.