Program Listing for File BNodeBackendView.cpp

Return to documentation for file (src/rdf4cpp/storage/view/BNodeBackendView.cpp)

#include "BNodeBackendView.hpp"

#include <dice/hash.hpp>

namespace rdf4cpp::storage::view {
size_t BNodeBackendView::hash() const noexcept {
    return dice::hash::dice_hash_templates<::dice::hash::Policies::wyhash>::dice_hash(identifier);
}
}  // namespace rdf4cpp::storage::view

size_t std::hash<rdf4cpp::storage::view::BNodeBackendView>::operator()(rdf4cpp::storage::view::BNodeBackendView const &x) const noexcept {
    return x.hash();
}