mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
add functional/polymorphic.hpp
This commit is contained in:
parent
71b6e89f92
commit
3a2610cb5c
66 changed files with 1537 additions and 63 deletions
15
sprout/functional/hash/pit.hpp
Normal file
15
sprout/functional/hash/pit.hpp
Normal file
|
@ -0,0 +1,15 @@
|
|||
#ifndef SPROUT_FUNCTIONAL_HASH_PIT_HPP
|
||||
#define SPROUT_FUNCTIONAL_HASH_PIT_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/functional/hash/hash.hpp>
|
||||
#include <sprout/pit.hpp>
|
||||
|
||||
namespace sprout {
|
||||
template<typename Container>
|
||||
SPROUT_CONSTEXPR std::size_t hash_value(sprout::pit<Container> const& v) {
|
||||
return sprout::to_hash(v.elem);
|
||||
}
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_FUNCTIONAL_HASH_PIT_HPP
|
Loading…
Add table
Add a link
Reference in a new issue