From 4b2ee268cc44d6c7c8511ac487babda357c7c926 Mon Sep 17 00:00:00 2001 From: Tobias Loew Date: Thu, 12 Sep 2019 15:07:36 +0200 Subject: [PATCH] alias templates for small_flat_[multi]{set|map} using small_vector as container alias templates for small_flat_[multi]{set|map} using small_vector as container guarded by #ifndef BOOST_NO_CXX11_TEMPLATE_ALIASES --- include/boost/container/container_fwd.hpp | 37 +++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/include/boost/container/container_fwd.hpp b/include/boost/container/container_fwd.hpp index 2cfb20a..95341d1 100644 --- a/include/boost/container/container_fwd.hpp +++ b/include/boost/container/container_fwd.hpp @@ -183,6 +183,43 @@ template class flat_multimap; +#ifndef BOOST_NO_CXX11_TEMPLATE_ALIASES + +//! Alias templates for small_flat_[multi]{set|map} using small_vector as container + +template < class Key + , std::size_t N + , class Compare = std::less + , class SmallVectorAllocator = void + , class SmallVectorOptions = void > +using small_flat_set = flat_set>; + +template < class Key + , std::size_t N + , class Compare = std::less + , class SmallVectorAllocator = void + , class SmallVectorOptions = void > +using small_flat_multiset = flat_multiset>; + +template < class Key + , class T + , std::size_t N + , class Compare = std::less + , class SmallVectorAllocator = void + , class SmallVectorOptions = void > +using small_flat_map = flat_map, N, SmallVectorAllocator, SmallVectorOptions>>; + +template < class Key + , class T + , std::size_t N + , class Compare = std::less + , class SmallVectorAllocator = void + , class SmallVectorOptions = void > +using small_flat_multimap = flat_multimap, N, SmallVectorAllocator, SmallVectorOptions>>; + +#endif // #ifndef BOOST_NO_CXX11_TEMPLATE_ALIASES + + template ,class Allocator = void >