mirror of
https://github.com/greg7mdp/parallel-hashmap.git
synced 2026-08-29 08:34:39 +08:00
Simplify phmap_fwd_decl.h
This commit is contained in:
@@ -14,7 +14,7 @@ This repository aims to provide an set of excellent hash map implementations, wi
|
|||||||
|
|
||||||
- supports **heterogeneous lookup**
|
- 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.
|
- **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.
|
||||||
|
|
||||||
|
|||||||
Vendored
+2
-28
@@ -9,36 +9,8 @@
|
|||||||
// You may obtain a copy of the License at
|
// You may obtain a copy of the License at
|
||||||
//
|
//
|
||||||
// https://www.apache.org/licenses/LICENSE-2.0
|
// 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<class T1, class T2> using Pair = template<class T1, class T2> struct pair;
|
|
||||||
}
|
|
||||||
|
|
||||||
namespace phmap {
|
namespace phmap {
|
||||||
|
|
||||||
template <class T> struct Hash;
|
template <class T> struct Hash;
|
||||||
@@ -63,8 +35,10 @@ namespace phmap {
|
|||||||
template <class T>
|
template <class T>
|
||||||
using hash_default_eq = typename container_internal::HashEq<T>::Eq;
|
using hash_default_eq = typename container_internal::HashEq<T>::Eq;
|
||||||
|
|
||||||
|
// alias for std::allocator so we can forward declare without including other headers
|
||||||
template <class T> using Allocator = typename phmap::Allocator<T>;
|
template <class T> using Allocator = typename phmap::Allocator<T>;
|
||||||
|
|
||||||
|
// alias for std::pair so we can forward declare without including other headers
|
||||||
template<class T1, class T2> using Pair = typename phmap::Pair<T1, T2>;
|
template<class T1, class T2> using Pair = typename phmap::Pair<T1, T2>;
|
||||||
|
|
||||||
} // namespace container_internal
|
} // namespace container_internal
|
||||||
|
|||||||
Reference in New Issue
Block a user