#include #include #include #include #include #include #include #include #include struct ord_tag {}; struct hash_tag {}; struct rand_tag {}; struct seq_tag {}; using namespace boost::multi_index; typedef multi_index_container< int, indexed_by< ordered_unique, identity >, hashed_unique, identity >, random_access >, sequenced > > > container; #if defined(BOOST_NO_INITIALIZER_LISTS) int main() {} #else int main() { const container c = {3, 1, 4}; { const std::vector expected = {1, 3, 4}; BOOST_TEST(boost::equal(c, expected)); BOOST_TEST(boost::equal(c.get(), expected)); BOOST_TEST(boost::equal(c.get(), expected)); } { const std::vector expected = {3, 1, 4}; BOOST_TEST(boost::equal(c.get(), expected)); BOOST_TEST(boost::equal(c.get(), expected)); } return boost::report_errors(); } #endif