Home
last modified time | relevance | path

Searched refs:Hashable (Results 1 – 25 of 33) sorted by relevance

12

/third_party/boost/boost/hana/
Dhash.hpp31 hana::Hashable<Tag>::value in operator ()()
35 static_assert(hana::Hashable<Tag>::value, in operator ()()
Dset.hpp102 static_assert(detail::fast_and<hana::Hashable<Xs>::value...>::value, in apply()
/third_party/boost/libs/hana/include/boost/hana/
Dhash.hpp31 hana::Hashable<Tag>::value in operator ()()
35 static_assert(hana::Hashable<Tag>::value, in operator ()()
Dset.hpp102 static_assert(detail::fast_and<hana::Hashable<Xs>::value...>::value, in apply()
/third_party/boost/libs/hana/include/boost/hana/fwd/concept/
Dhashable.hpp65 struct Hashable;
/third_party/boost/boost/hana/fwd/concept/
Dhashable.hpp65 struct Hashable;
/third_party/boost/boost/hana/concept/
Dhashable.hpp25 struct Hashable struct
/third_party/boost/libs/hana/include/boost/hana/concept/
Dhashable.hpp25 struct Hashable struct
/third_party/python/Lib/test/
Dtest_hash.py11 from collections.abc import Hashable
143 self.assertIsInstance(obj, Hashable)
147 self.assertNotIsInstance(obj, Hashable)
Dtest_collections.py23 from collections.abc import Hashable, Iterable, Iterator, Generator, Reversible
887 self.assertNotIsInstance(x, Hashable)
888 self.assertFalse(issubclass(type(x), Hashable), repr(type(x)))
897 self.assertIsInstance(x, Hashable)
898 self.assertTrue(issubclass(type(x), Hashable), repr(type(x)))
899 self.assertRaises(TypeError, Hashable)
901 class H(Hashable):
906 self.validate_abstract_methods(Hashable, '__hash__')
907 self.validate_isinstance(Hashable, '__hash__')
1356 for B in Hashable, Iterable, Iterator, Reversible, Sized, Container, Callable:
[all …]
Dtest_types.py762 typing.Hashable, typing.TypeVar('T'))
794 eq(x[typing.Hashable], int | typing.Hashable | bytes)
795 eq(x[collections.abc.Hashable],
796 int | collections.abc.Hashable | bytes, typed=False)
Dtest_genericalias.py100 for t in int, str, float, Sized, Hashable:
/third_party/abseil-cpp/absl/container/internal/
Dhash_function_defaults_test.cc351 struct Hashable { struct
357 struct hash<Hashable<H>> {
358 template <class E = Hashable<H>,
377 EXPECT_EQ(Hash(kStd), Hash(Hashable<kStd>())); in TEST()
/third_party/skia/third_party/externals/abseil-cpp/absl/container/internal/
Dhash_function_defaults_test.cc351 struct Hashable { struct
357 struct hash<Hashable<H>> {
358 template <class E = Hashable<H>,
377 EXPECT_EQ(Hash(kStd), Hash(Hashable<kStd>())); in TEST()
/third_party/boost/libs/hana/test/_include/laws/
Dhashable.hpp33 static_assert(Hashable<decltype(x)>{}, ""); in TestHashable()
/third_party/boost/libs/hana/test/issues/
Dgithub_269.cpp20 BOOST_HANA_CONSTANT_CHECK(hana::IntegralConstant<hana::Hashable<T>>{});
/third_party/skia/third_party/externals/abseil-cpp/absl/types/
Doptional_test.cc30 struct Hashable {}; struct
34 struct hash<Hashable> {
35 size_t operator()(const Hashable&) { return 0; } in operator ()()
1511 static_assert(is_hash_enabled_for<absl::optional<Hashable>>::value, ""); in TEST()
1515 absl::type_traits_internal::IsHashable<absl::optional<Hashable>>::value, in TEST()
1518 absl::type_traits_internal::AssertHashEnabled<absl::optional<Hashable>>(); in TEST()
1532 static_assert(is_hash_enabled_for<absl::optional<const Hashable>>::value, ""); in TEST()
Dvariant_test.cc61 struct Hashable {}; struct
65 struct hash<Hashable> {
66 size_t operator()(const Hashable&);
2073 static_assert(type_traits_internal::IsHashable<variant<Hashable>>::value, ""); in TEST()
2074 static_assert(type_traits_internal::IsHashable<variant<int, Hashable>>::value, in TEST()
2081 !type_traits_internal::IsHashable<variant<Hashable, NonHashable>>::value, in TEST()
2109 type_traits_internal::IsHashable<variant<const Hashable>>::value, ""); in TEST()
/third_party/abseil-cpp/absl/types/
Doptional_test.cc30 struct Hashable {}; struct
34 struct hash<Hashable> {
35 size_t operator()(const Hashable&) { return 0; } in operator ()()
1511 static_assert(is_hash_enabled_for<absl::optional<Hashable>>::value, ""); in TEST()
1515 absl::type_traits_internal::IsHashable<absl::optional<Hashable>>::value, in TEST()
1518 absl::type_traits_internal::AssertHashEnabled<absl::optional<Hashable>>(); in TEST()
1532 static_assert(is_hash_enabled_for<absl::optional<const Hashable>>::value, ""); in TEST()
Dvariant_test.cc61 struct Hashable {}; struct
65 struct hash<Hashable> {
66 size_t operator()(const Hashable&);
2073 static_assert(type_traits_internal::IsHashable<variant<Hashable>>::value, ""); in TEST()
2074 static_assert(type_traits_internal::IsHashable<variant<int, Hashable>>::value, in TEST()
2081 !type_traits_internal::IsHashable<variant<Hashable, NonHashable>>::value, in TEST()
2109 type_traits_internal::IsHashable<variant<const Hashable>>::value, ""); in TEST()
/third_party/python/Doc/library/
Dcollections.abc.rst124 :class:`Hashable` [1]_ ``__hash__``
206 .. class:: Hashable
410 inherit from both :meth:`Set` and :meth:`Hashable`, then define
/third_party/python/Lib/
D_collections_abc.py90 class Hashable(metaclass=ABCMeta): class
100 if cls is Hashable:
Dtyping.py2071 Hashable = _alias(collections.abc.Hashable, 0) # Not generic. variable
/third_party/PyYAML/lib/yaml/
Dconstructor.py140 if not isinstance(key, collections.abc.Hashable):
/third_party/PyYAML/
DCHANGES102 * https://github.com/yaml/pyyaml/pull/181 -- Import Hashable from collections.abc

12