|
||||
File indexing completed on 2025-01-18 09:27:15
0001 // Copyright 2024 The Abseil Authors 0002 // 0003 // Licensed under the Apache License, Version 2.0 (the "License"); 0004 // you may not use this file except in compliance with the License. 0005 // You may obtain a copy of the License at 0006 // 0007 // https://www.apache.org/licenses/LICENSE-2.0 0008 // 0009 // Unless required by applicable law or agreed to in writing, software 0010 // distributed under the License is distributed on an "AS IS" BASIS, 0011 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 0012 // See the License for the specific language governing permissions and 0013 // limitations under the License. 0014 0015 #ifndef ABSL_CONTAINER_HASH_CONTAINER_DEFAULTS_H_ 0016 #define ABSL_CONTAINER_HASH_CONTAINER_DEFAULTS_H_ 0017 0018 #include "absl/base/config.h" 0019 #include "absl/container/internal/hash_function_defaults.h" 0020 0021 namespace absl { 0022 ABSL_NAMESPACE_BEGIN 0023 0024 // DefaultHashContainerHash is a convenience alias for the functor that is used 0025 // by default by Abseil hash-based (unordered) containers for hashing when 0026 // `Hash` type argument is not explicitly specified. 0027 // 0028 // This type alias can be used by generic code that wants to provide more 0029 // flexibility for defining underlying containers. 0030 template <typename T> 0031 using DefaultHashContainerHash = absl::container_internal::hash_default_hash<T>; 0032 0033 // DefaultHashContainerEq is a convenience alias for the functor that is used by 0034 // default by Abseil hash-based (unordered) containers for equality check when 0035 // `Eq` type argument is not explicitly specified. 0036 // 0037 // This type alias can be used by generic code that wants to provide more 0038 // flexibility for defining underlying containers. 0039 template <typename T> 0040 using DefaultHashContainerEq = absl::container_internal::hash_default_eq<T>; 0041 0042 ABSL_NAMESPACE_END 0043 } // namespace absl 0044 0045 #endif // ABSL_CONTAINER_HASH_CONTAINER_DEFAULTS_H_
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |