diff options
| author | Maxime Coste <mawww@kakoune.org> | 2017-05-10 23:22:24 +0100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2017-07-19 08:49:44 +0200 |
| commit | d37c3d175d74158b899f03d316bfe6ae96e89503 (patch) | |
| tree | 2d2d99fe25da057e8e9d6d68683c0a00a8118ae5 /src/hash.hh | |
| parent | 609bc24f67e53708d8cb93a070ab58d770e6e001 (diff) | |
More uses of standard type traits aliases
Diffstat (limited to 'src/hash.hh')
| -rw-r--r-- | src/hash.hh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/hash.hh b/src/hash.hh index a79bbf3c..35e89e84 100644 --- a/src/hash.hh +++ b/src/hash.hh @@ -65,6 +65,9 @@ struct HashCompatible : std::false_type {}; template<typename T> struct HashCompatible<T, T> : std::true_type {}; +template<typename Lhs, typename Rhs> +constexpr bool IsHashCompatible = HashCompatible<Lhs, Rhs>::value; + } #endif // hash_hh_INCLUDED |
