What is a bucket pointer in C ++?

  • What is the difference between a pointer and a bucket pointer?

  • What is a bucket pointer in C / C ++?

  • What are the advantages and disadvantages of using them?

+3
source share
1 answer

Generally, the term bucket refers to a subcontainer in a hash table or hash container. Items that have the same hash code are stored in the same bucket. A bucket can be implemented as a pointer to some storage, such as an unprocessed array, the head of a linked list, or a pointer to an implementation class. A pointer can be a pointer to anything - a variable, an object, a variable, etc.

+11
source

All Articles