hash in C++ | std::hash in C++

  Рет қаралды 2,921

CppNuts

CppNuts

Күн бұрын

In this video we will learn what is std::hash in c++11.
std::hash is a template class defined in the C++ Standard Library header "functional". It is used to generate hash values for objects of various types. Hashing is a process of mapping data of arbitrary size to a fixed-size value, typically for use in data structures such as hash tables or hash-based data structures like std::unordered_map, std::unordered_set, etc.
std::hash provides a default hash function for built-in types and allows users to specialize it for their custom types.
JOIN ME
/ @cppnuts
/ cppnuts
#dsalgo #algorithm #cppprogramming #softwareengineer

Пікірлер: 12
@edwin3928ohd
@edwin3928ohd 9 ай бұрын
I have learned great things from this channel. Thank you! Your multithreading in C++ series has been the most helpful to me personally.
@__hannibaalbarca__
@__hannibaalbarca__ 9 ай бұрын
You are right.
@deepikapatait6861
@deepikapatait6861 9 ай бұрын
thankyou for providing such meaningful contents✌
@christiantutoriels1075
@christiantutoriels1075 9 ай бұрын
I really love your videos.... really amazing
@AkhileshSingh-y4v
@AkhileshSingh-y4v 9 ай бұрын
Learned something new. Thank you :)
@aswin6261
@aswin6261 9 ай бұрын
Awesome 😎 content
@Byynx
@Byynx 9 ай бұрын
The video thumbnail colors works great, you should keep that style.
@CppNuts
@CppNuts 9 ай бұрын
Thanks for the comment dude..
@markbennett1237
@markbennett1237 5 ай бұрын
It may be very unlikely, but is it possible to have two completely different objects with the same hash value? Is it safe to use a hash as an identifier?
@CppNuts
@CppNuts 5 ай бұрын
If hash value is same for two objects then we can have a linkedlist data structure to maintain those object in the same list.
@deepikapatait6861
@deepikapatait6861 3 ай бұрын
if you provide this in hindi it would be more helpfull and also become easy to understand for all of us.
@CppNuts
@CppNuts 3 ай бұрын
Sure!!
forward In C++11
2:35
CppNuts
Рет қаралды 3,2 М.
Map In C++
13:54
CppNuts
Рет қаралды 139 М.
Cute dog Won Squid Game 😱💸 #dog # funny #cartoon
00:33
Wooffey
Рет қаралды 21 МЛН
SPLASH BALLOON
00:44
Natan por Aí
Рет қаралды 24 МЛН
Faster than Rust and C++: the PERFECT hash table
33:52
strager
Рет қаралды 619 М.
An Introduction to Dictionaries in C
19:03
Ali Awan
Рет қаралды 1,4 М.
std::set In C++
13:56
CppNuts
Рет қаралды 96 М.
Всё об указателях в C++ за 20 минут
20:00
Function Pointers in C++
12:41
The Cherno
Рет қаралды 402 М.
Hash Tables and Hash Functions
13:56
Computer Science Lessons
Рет қаралды 1,6 МЛН
Cute dog Won Squid Game 😱💸 #dog # funny #cartoon
00:33
Wooffey
Рет қаралды 21 МЛН