From 3af2654edacf5d9800f9eeb4e1f7cd20450b67f7 Mon Sep 17 00:00:00 2001 From: Matei David Date: Thu, 15 May 2014 13:54:53 -0400 Subject: [PATCH] lib: extra template parameter to containers & makers, not used yet --- include/boost/intrusive/avl_set.hpp | 22 ++++++++++++---------- include/boost/intrusive/avltree.hpp | 11 ++++++----- include/boost/intrusive/bs_set.hpp | 22 ++++++++++++---------- include/boost/intrusive/bstree.hpp | 11 ++++++----- include/boost/intrusive/intrusive_fwd.hpp | 20 ++++++++++++++++++++ include/boost/intrusive/list.hpp | 10 +++++----- include/boost/intrusive/rbtree.hpp | 11 ++++++----- include/boost/intrusive/set.hpp | 22 ++++++++++++---------- include/boost/intrusive/sg_set.hpp | 22 ++++++++++++---------- include/boost/intrusive/sgtree.hpp | 11 ++++++----- include/boost/intrusive/slist.hpp | 10 +++++----- include/boost/intrusive/splay_set.hpp | 22 ++++++++++++---------- include/boost/intrusive/splaytree.hpp | 11 ++++++----- include/boost/intrusive/treap.hpp | 11 ++++++----- include/boost/intrusive/treap_set.hpp | 22 ++++++++++++---------- 15 files changed, 138 insertions(+), 100 deletions(-) diff --git a/include/boost/intrusive/avl_set.hpp b/include/boost/intrusive/avl_set.hpp index ce2d178..f125785 100644 --- a/include/boost/intrusive/avl_set.hpp +++ b/include/boost/intrusive/avl_set.hpp @@ -397,7 +397,8 @@ void swap(avl_set_impl &x, avl_set_impl &y); template #else template + , class O3 = void, class O4 = void + , class O5 = void> #endif struct make_avl_set { @@ -405,7 +406,7 @@ struct make_avl_set typedef typename pack_options < avltree_defaults, #if !defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES) - O1, O2, O3, O4 + O1, O2, O3, O4, O5 #else Options... #endif @@ -426,14 +427,14 @@ struct make_avl_set #ifndef BOOST_INTRUSIVE_DOXYGEN_INVOKED #if !defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES) -template +template #else template #endif class avl_set : public make_avl_set &x, avl_multiset_impl template #else template + , class O3 = void, class O4 = void + , class O5 = void> #endif struct make_avl_multiset { @@ -842,7 +844,7 @@ struct make_avl_multiset typedef typename pack_options < avltree_defaults, #if !defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES) - O1, O2, O3, O4 + O1, O2, O3, O4, O5 #else Options... #endif @@ -864,14 +866,14 @@ struct make_avl_multiset #ifndef BOOST_INTRUSIVE_DOXYGEN_INVOKED #if !defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES) -template +template #else template #endif class avl_multiset : public make_avl_multiset &x, avltree_impl &y); template #else template + , class O3 = void, class O4 = void + , class O5 = void> #endif struct make_avltree { @@ -439,7 +440,7 @@ struct make_avltree typedef typename pack_options < avltree_defaults, #if !defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES) - O1, O2, O3, O4 + O1, O2, O3, O4, O5 #else Options... #endif @@ -462,14 +463,14 @@ struct make_avltree #ifndef BOOST_INTRUSIVE_DOXYGEN_INVOKED #if !defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES) -template +template #else template #endif class avltree : public make_avltree &x, bs_set_impl &y); template #else template + , class O3 = void, class O4 = void + , class O5 = void> #endif struct make_bs_set { @@ -403,7 +404,7 @@ struct make_bs_set typedef typename pack_options < bstree_defaults, #if !defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES) - O1, O2, O3, O4 + O1, O2, O3, O4, O5 #else Options... #endif @@ -424,14 +425,14 @@ struct make_bs_set #ifndef BOOST_INTRUSIVE_DOXYGEN_INVOKED #if !defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES) -template +template #else template #endif class bs_set : public make_bs_set &x, bs_multiset_impl &y template #else template + , class O3 = void, class O4 = void + , class O5 = void> #endif struct make_bs_multiset { @@ -840,7 +842,7 @@ struct make_bs_multiset typedef typename pack_options < bstree_defaults, #if !defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES) - O1, O2, O3, O4 + O1, O2, O3, O4, O5 #else Options... #endif @@ -862,14 +864,14 @@ struct make_bs_multiset #ifndef BOOST_INTRUSIVE_DOXYGEN_INVOKED #if !defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES) -template +template #else template #endif class bs_multiset : public make_bs_multiset #else template + , class O3 = void, class O4 = void + , class O5 = void> #endif struct make_bstree { @@ -2010,7 +2011,7 @@ struct make_bstree typedef typename pack_options < bstree_defaults, #if !defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES) - O1, O2, O3, O4 + O1, O2, O3, O4, O5 #else Options... #endif @@ -2034,14 +2035,14 @@ struct make_bstree #ifndef BOOST_INTRUSIVE_DOXYGEN_INVOKED #if !defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES) -template +template #else template #endif class bstree : public make_bstree #else template @@ -137,6 +138,7 @@ template , class O1 = void , class O2 = void , class O3 = void + , class O4 = void > #else template @@ -173,6 +175,7 @@ template , class O2 = void , class O3 = void , class O4 = void + , class O5 = void > #else template @@ -186,6 +189,7 @@ template , class O2 = void , class O3 = void , class O4 = void + , class O5 = void > #else template @@ -199,6 +203,7 @@ template , class O2 = void , class O3 = void , class O4 = void + , class O5 = void > #else template @@ -237,6 +242,7 @@ template , class O2 = void , class O3 = void , class O4 = void + , class O5 = void > #else template @@ -250,6 +256,7 @@ template , class O2 = void , class O3 = void , class O4 = void + , class O5 = void > #else template @@ -263,6 +270,7 @@ template , class O2 = void , class O3 = void , class O4 = void + , class O5 = void > #else template @@ -277,6 +285,7 @@ template , class O2 = void , class O3 = void , class O4 = void + , class O5 = void > #else template @@ -290,6 +299,7 @@ template , class O2 = void , class O3 = void , class O4 = void + , class O5 = void > #else template @@ -303,6 +313,7 @@ template , class O2 = void , class O3 = void , class O4 = void + , class O5 = void > #else template @@ -342,6 +353,7 @@ template , class O2 = void , class O3 = void , class O4 = void + , class O5 = void > #else template @@ -355,6 +367,7 @@ template , class O2 = void , class O3 = void , class O4 = void + , class O5 = void > #else template @@ -368,6 +381,7 @@ template , class O2 = void , class O3 = void , class O4 = void + , class O5 = void > #else template @@ -382,6 +396,7 @@ template , class O2 = void , class O3 = void , class O4 = void + , class O5 = void > #else template @@ -395,6 +410,7 @@ template , class O2 = void , class O3 = void , class O4 = void + , class O5 = void > #else template @@ -408,6 +424,7 @@ template , class O2 = void , class O3 = void , class O4 = void + , class O5 = void > #else template @@ -421,6 +438,7 @@ template , class O2 = void , class O3 = void , class O4 = void + , class O5 = void > #else template @@ -434,6 +452,7 @@ template , class O2 = void , class O3 = void , class O4 = void + , class O5 = void > #else template @@ -447,6 +466,7 @@ template , class O2 = void , class O3 = void , class O4 = void + , class O5 = void > #else template diff --git a/include/boost/intrusive/list.hpp b/include/boost/intrusive/list.hpp index a16b14d..16bff16 100644 --- a/include/boost/intrusive/list.hpp +++ b/include/boost/intrusive/list.hpp @@ -1387,7 +1387,7 @@ inline void swap #if defined(BOOST_INTRUSIVE_DOXYGEN_INVOKED) || defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES) template #else -template +template #endif struct make_list { @@ -1395,7 +1395,7 @@ struct make_list typedef typename pack_options < list_defaults, #if !defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES) - O1, O2, O3 + O1, O2, O3, O4 #else Options... #endif @@ -1418,14 +1418,14 @@ struct make_list #ifndef BOOST_INTRUSIVE_DOXYGEN_INVOKED #if !defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES) -template +template #else template #endif class list : public make_list &x, rbtree_impl &y); template #else template + , class O3 = void, class O4 = void + , class O5 = void> #endif struct make_rbtree { @@ -435,7 +436,7 @@ struct make_rbtree typedef typename pack_options < rbtree_defaults, #if !defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES) - O1, O2, O3, O4 + O1, O2, O3, O4, O5 #else Options... #endif @@ -458,14 +459,14 @@ struct make_rbtree #ifndef BOOST_INTRUSIVE_DOXYGEN_INVOKED #if !defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES) -template +template #else template #endif class rbtree : public make_rbtree &x, set_impl &y); template #else template + , class O3 = void, class O4 = void + , class O5 = void> #endif struct make_set { @@ -405,7 +406,7 @@ struct make_set typedef typename pack_options < rbtree_defaults, #if !defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES) - O1, O2, O3, O4 + O1, O2, O3, O4, O5 #else Options... #endif @@ -426,14 +427,14 @@ struct make_set #ifndef BOOST_INTRUSIVE_DOXYGEN_INVOKED #if !defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES) -template +template #else template #endif class set : public make_set &x, multiset_impl &y); template #else template + , class O3 = void, class O4 = void + , class O5 = void> #endif struct make_multiset { @@ -842,7 +844,7 @@ struct make_multiset typedef typename pack_options < rbtree_defaults, #if !defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES) - O1, O2, O3, O4 + O1, O2, O3, O4, O5 #else Options... #endif @@ -864,14 +866,14 @@ struct make_multiset #ifndef BOOST_INTRUSIVE_DOXYGEN_INVOKED #if !defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES) -template +template #else template #endif class multiset : public make_multiset &x, sg_set_impl &y); template #else template + , class O3 = void, class O4 = void + , class O5 = void> #endif struct make_sg_set { @@ -416,7 +417,7 @@ struct make_sg_set typedef typename pack_options < sgtree_defaults, #if !defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES) - O1, O2, O3, O4 + O1, O2, O3, O4, O5 #else Options... #endif @@ -437,14 +438,14 @@ struct make_sg_set #ifndef BOOST_INTRUSIVE_DOXYGEN_INVOKED #if !defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES) -template +template #else template #endif class sg_set : public make_sg_set &x, sg_multiset_impl &y template #else template + , class O3 = void, class O4 = void + , class O5 = void> #endif struct make_sg_multiset { @@ -866,7 +868,7 @@ struct make_sg_multiset typedef typename pack_options < sgtree_defaults, #if !defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES) - O1, O2, O3, O4 + O1, O2, O3, O4, O5 #else Options... #endif @@ -888,14 +890,14 @@ struct make_sg_multiset #ifndef BOOST_INTRUSIVE_DOXYGEN_INVOKED #if !defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES) -template +template #else template #endif class sg_multiset : public make_sg_multiset &x, sgtree_impl &y); template #else template + , class O3 = void, class O4 = void + , class O5 = void> #endif struct make_sgtree { @@ -881,7 +882,7 @@ struct make_sgtree typedef typename pack_options < sgtree_defaults, #if !defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES) - O1, O2, O3, O4 + O1, O2, O3, O4, O5 #else Options... #endif @@ -904,14 +905,14 @@ struct make_sgtree #ifndef BOOST_INTRUSIVE_DOXYGEN_INVOKED #if !defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES) -template +template #else template #endif class sgtree : public make_sgtree #else -template +template #endif struct make_slist { @@ -2106,7 +2106,7 @@ struct make_slist typedef typename pack_options < slist_defaults, #if !defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES) - O1, O2, O3, O4, O5 + O1, O2, O3, O4, O5, O6 #else Options... #endif @@ -2128,14 +2128,14 @@ struct make_slist #ifndef BOOST_INTRUSIVE_DOXYGEN_INVOKED #if !defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES) -template +template #else template #endif class slist : public make_slist &x, splay_set_impl &y); template #else template + , class O3 = void, class O4 = void + , class O5 = void> #endif struct make_splay_set { @@ -426,7 +427,7 @@ struct make_splay_set typedef typename pack_options < splaytree_defaults, #if !defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES) - O1, O2, O3, O4 + O1, O2, O3, O4, O5 #else Options... #endif @@ -447,14 +448,14 @@ struct make_splay_set #ifndef BOOST_INTRUSIVE_DOXYGEN_INVOKED #if !defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES) -template +template #else template #endif class splay_set : public make_splay_set &x, splay_multiset_impl #else template + , class O3 = void, class O4 = void + , class O5 = void> #endif struct make_splay_multiset { @@ -879,7 +881,7 @@ struct make_splay_multiset typedef typename pack_options < splaytree_defaults, #if !defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES) - O1, O2, O3, O4 + O1, O2, O3, O4, O5 #else Options... #endif @@ -901,14 +903,14 @@ struct make_splay_multiset #ifndef BOOST_INTRUSIVE_DOXYGEN_INVOKED #if !defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES) -template +template #else template #endif class splay_multiset : public make_splay_multiset &x, splaytree_impl &y); template #else template + , class O3 = void, class O4 = void + , class O5 = void> #endif struct make_splaytree { @@ -522,7 +523,7 @@ struct make_splaytree typedef typename pack_options < splaytree_defaults, #if !defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES) - O1, O2, O3, O4 + O1, O2, O3, O4, O5 #else Options... #endif @@ -545,14 +546,14 @@ struct make_splaytree #ifndef BOOST_INTRUSIVE_DOXYGEN_INVOKED #if !defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES) -template +template #else template #endif class splaytree : public make_splaytree &x, treap_impl &y); template #else template + , class O3 = void, class O4 = void + , class O5 = void> #endif struct make_treap { typedef typename pack_options < treap_defaults, #if !defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES) - O1, O2, O3, O4 + O1, O2, O3, O4, O5 #else Options... #endif @@ -1093,14 +1094,14 @@ struct make_treap #ifndef BOOST_INTRUSIVE_DOXYGEN_INVOKED #if !defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES) -template +template #else template #endif class treap : public make_treap #else template + , class O3 = void, class O4 = void + , class O5 = void> #endif struct make_treap_set { typedef typename pack_options < treap_defaults, #if !defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES) - O1, O2, O3, O4 + O1, O2, O3, O4, O5 #else Options... #endif @@ -453,14 +454,14 @@ struct make_treap_set #ifndef BOOST_INTRUSIVE_DOXYGEN_INVOKED #if !defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES) -template +template #else template #endif class treap_set : public make_treap_set #else template + , class O3 = void, class O4 = void + , class O5 = void> #endif struct make_treap_multiset { typedef typename pack_options < treap_defaults, #if !defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES) - O1, O2, O3, O4 + O1, O2, O3, O4, O5 #else Options... #endif @@ -919,14 +921,14 @@ struct make_treap_multiset #ifndef BOOST_INTRUSIVE_DOXYGEN_INVOKED #if !defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES) -template +template #else template #endif class treap_multiset : public make_treap_multiset