pair_traits for getting pair types without instantiating.

I was having some problems in an abandoned prototype with incomplete
types, I'm not sure I will have this problem now, but I'm keeping this
anyway, as it seems useful.
This commit is contained in:
Daniel James committed 2017-02-23 20:14:27 +00:00
1 parent 81aefde94e
commit 79cf0c4bfb
2 files changed
+22 -4

No files matched your search

+2 -2
View File
@@ -29,7 +29,7 @@ template <typename A, typename K, typename M, typename H, typename P> struct map
typedef typename pick::link_pointer link_pointer;
typedef boost::unordered::detail::table_impl<types> table;
typedef boost::unordered::detail::map_extractor<K, value_type> extractor;
typedef boost::unordered::detail::map_extractor<value_type> extractor;
typedef typename boost::unordered::detail::pick_policy<K>::type policy;
@@ -62,7 +62,7 @@ struct multimap
typedef typename pick::link_pointer link_pointer;
typedef boost::unordered::detail::grouped_table_impl<types> table;
typedef boost::unordered::detail::map_extractor<K, value_type> extractor;
typedef boost::unordered::detail::map_extractor<value_type> extractor;
typedef typename boost::unordered::detail::pick_policy<K>::type policy;