diff --git a/parallel_hashmap/btree.h b/parallel_hashmap/btree.h index c8203f0..2598e0b 100644 --- a/parallel_hashmap/btree.h +++ b/parallel_hashmap/btree.h @@ -54,6 +54,7 @@ #include #include +#include "phmap_fwd_decl.h" #include "phmap_base.h" #if PHMAP_HAVE_STD_STRING_VIEW @@ -3808,8 +3809,9 @@ namespace container_internal { // ---------------------------------------------------------------------- - template , - typename Alloc = std::allocator> + // btree_set - default values in phmap_fwd_decl.h + // ---------------------------------------------------------------------- + template class btree_set : public container_internal::btree_set_container< container_internal::btree>> @@ -3864,8 +3866,9 @@ namespace container_internal { } // ---------------------------------------------------------------------- - template , - typename Alloc = std::allocator> + // btree_multiset - default values in phmap_fwd_decl.h + // ---------------------------------------------------------------------- + template class btree_multiset : public container_internal::btree_multiset_container< container_internal::btree>> @@ -3921,8 +3924,9 @@ namespace container_internal { // ---------------------------------------------------------------------- - template , - typename Alloc = std::allocator>> + // btree_map - default values in phmap_fwd_decl.h + // ---------------------------------------------------------------------- + template class btree_map : public container_internal::btree_map_container< container_internal::btree>> @@ -3979,8 +3983,9 @@ namespace container_internal { } // ---------------------------------------------------------------------- - template , - typename Alloc = std::allocator>> + // btree_multimap - default values in phmap_fwd_decl.h + // ---------------------------------------------------------------------- + template class btree_multimap : public container_internal::btree_multimap_container< container_internal::btree>> diff --git a/parallel_hashmap/phmap_fwd_decl.h b/parallel_hashmap/phmap_fwd_decl.h index 69d18ab..efc3ecb 100644 --- a/parallel_hashmap/phmap_fwd_decl.h +++ b/parallel_hashmap/phmap_fwd_decl.h @@ -13,6 +13,7 @@ #include #include +#include #if defined(PHMAP_USE_ABSL_HASH) namespace absl { template struct Hash; }; @@ -58,6 +59,7 @@ namespace phmap { } // namespace container_internal + // ------------- forward declarations for hash containers ---------------------------------- template , class Eq = phmap::container_internal::hash_default_eq, @@ -118,7 +120,22 @@ namespace phmap { class Mutex = phmap::NullMutex> // use std::mutex to enable internal locks class parallel_node_hash_map; + // ------------- forward declarations for btree containers ---------------------------------- + template , + typename Alloc = phmap::Allocator> + class btree_set; + template , + typename Alloc = phmap::Allocator> + class btree_multiset; + + template , + typename Alloc = phmap::Allocator>> + class btree_map; + + template , + typename Alloc = phmap::Allocator>> + class btree_multimap; } // namespace phmap