diff --git a/README.md b/README.md index fa40306..92325d2 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ This repository aims to provide an set of excellent hash map implementations, wi - supports **heterogeneous lookup** -- easy to **forward declare**: just include `phmap_fwd_decl.h` in your header files to forward declare Parallel Hashmap containers. This header is only 130 lines including comments. +- easy to **forward declare**: just include `phmap_fwd_decl.h` in your header files to forward declare Parallel Hashmap containers. This header is only 111 lines including comments. - **Tested** on Windows (vs2015 & vs2017), linux (g++ 5, 6, 7, 8, clang++ 3.9, 4.0, 5.0) and MacOS (g++ and clang++) - click on travis and appveyor icons above for detailed test status. diff --git a/parallel_hashmap/phmap_fwd_decl.h b/parallel_hashmap/phmap_fwd_decl.h index 4fc006a..d6b861d 100644 --- a/parallel_hashmap/phmap_fwd_decl.h +++ b/parallel_hashmap/phmap_fwd_decl.h @@ -9,36 +9,8 @@ // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Includes work from abseil-cpp (https://github.com/abseil/abseil-cpp) -// with modifications. -// -// Copyright 2018 The Abseil Authors. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. // --------------------------------------------------------------------------- -namespace std -{ - //template using Pair = template struct pair; -} - namespace phmap { template struct Hash; @@ -63,8 +35,10 @@ namespace phmap { template using hash_default_eq = typename container_internal::HashEq::Eq; + // alias for std::allocator so we can forward declare without including other headers template using Allocator = typename phmap::Allocator; + // alias for std::pair so we can forward declare without including other headers template using Pair = typename phmap::Pair; } // namespace container_internal