summaryrefslogtreecommitdiffstats
path: root/libcxx/include/unordered_map
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2017-01-13 22:42:53 +0000
committerEric Fiselier <eric@efcs.ca>2017-01-13 22:42:53 +0000
commit04333f9bda707d53a3ddf582f477baaaaeed016b (patch)
treeace78e65ba083ac681fc0bf7cce8e765b4f0ce20 /libcxx/include/unordered_map
parentc0431fd02d24b86e3b2a9d029cb44e93aaf77efe (diff)
downloadbcm5719-llvm-04333f9bda707d53a3ddf582f477baaaaeed016b.tar.gz
bcm5719-llvm-04333f9bda707d53a3ddf582f477baaaaeed016b.zip
Diagnose non-const-callable hash functions and comparators
llvm-svn: 291969
Diffstat (limited to 'libcxx/include/unordered_map')
-rw-r--r--libcxx/include/unordered_map8
1 files changed, 2 insertions, 6 deletions
diff --git a/libcxx/include/unordered_map b/libcxx/include/unordered_map
index 7baf638833f..3f3808c1e2a 100644
--- a/libcxx/include/unordered_map
+++ b/libcxx/include/unordered_map
@@ -379,9 +379,7 @@ template <class Key, class T, class Hash, class Pred, class Alloc>
_LIBCPP_BEGIN_NAMESPACE_STD
-template <class _Key, class _Cp, class _Hash,
- bool = is_empty<_Hash>::value && !__libcpp_is_final<_Hash>::value
- >
+template <class _Key, class _Cp, class _Hash, bool _IsEmpty>
class __unordered_map_hasher
: private _Hash
{
@@ -449,9 +447,7 @@ swap(__unordered_map_hasher<_Key, _Cp, _Hash, __b>& __x,
__x.swap(__y);
}
-template <class _Key, class _Cp, class _Pred,
- bool = is_empty<_Pred>::value && !__libcpp_is_final<_Pred>::value
- >
+template <class _Key, class _Cp, class _Pred, bool _IsEmpty>
class __unordered_map_equal
: private _Pred
{
OpenPOWER on IntegriCloud