---
title: "Discussion on \"How to Hash Objects Without Repetition: std::hash can be DRY\" | Hashnode"
description: "Discussion on \"How to Hash Objects Without Repetition: std::hash can be DRY\". Learn to implement hash functions for classes without redundancy using std::hash and std::tie. Use fold expressions with std::tie and std::apply."
url: "https://hashnode.com/posts/how-to-hash-objects-without-repetition/6752f490b52fc37c8b7c4aef"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to Hash Objects Without Repetition: std::hash can be DRY](https://blog.infotraining.pl/how-to-hash-objects-without-repetition?utm_source=hashnode&utm_medium=feed)

Learn to implement hash functions for classes without redundancy using std::hash and std::tie. Use fold expressions with std::tie and std::apply.

Dec 6, 2024 · 6 min read · blog.infotraining.pl  
Updated Apr 7  
Read the article

-   [#cpp](https://hashnode.com/tag/cpp)
-   [#hashing-functions](https://hashnode.com/tag/hashing-functions)
-   [#tuples](https://hashnode.com/tag/tuples)
-   [#concepts](https://hashnode.com/tag/concepts)

## Written by

[Krystian Piękoś](https://hashnode.com/@infotraining)

@infotraining · Cracow, Poland

  
[View profile](https://hashnode.com/@infotraining)

#cpp #design-patterns #rust

Modern C++ trainer with 25+ years of experience. I have developed and delivered training courses on many aspects of OO development. My professional interests include design patterns, TDD, concurrency &amp; multithreading.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
