mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-04-14 19:00:15 +08:00
chore: use iwyu on hashing/**.cpp
This commit is contained in:
@@ -5,10 +5,11 @@
|
||||
* @brief Implementation of [hash
|
||||
* chains](https://en.wikipedia.org/wiki/Hash_chain).
|
||||
*/
|
||||
#include <cmath>
|
||||
#include <iostream>
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
#include <bits/std_abs.h> // for abs
|
||||
#include <stdlib.h> // for abs
|
||||
#include <iostream> // for basic_ostream, operator<<, char_traits, cout
|
||||
#include <memory> // for shared_ptr, __shared_ptr_access
|
||||
#include <vector> // for vector
|
||||
|
||||
/**
|
||||
* @brief Chain class with a given modulus
|
||||
|
||||
@@ -6,9 +6,10 @@
|
||||
* keys](https://en.wikipedia.org/wiki/Double_hashing).
|
||||
* @note The implementation can be optimized by using OOP style.
|
||||
*/
|
||||
#include <iostream>
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
#include <cstddef> // for size_t
|
||||
#include <functional> // for hash
|
||||
#include <iostream> // for basic_ostream, operator<<, char_traits, cout
|
||||
#include <vector> // for vector
|
||||
|
||||
/**
|
||||
* @addtogroup open_addressing Open Addressing
|
||||
|
||||
@@ -6,8 +6,10 @@
|
||||
* hash](https://en.wikipedia.org/wiki/Linear_probing) keys.
|
||||
* @note The implementation can be optimized by using OOP style.
|
||||
*/
|
||||
#include <iostream>
|
||||
#include <vector>
|
||||
#include <cstddef> // for size_t
|
||||
#include <functional> // for hash
|
||||
#include <iostream> // for basic_ostream, operator<<, char_traits, cout
|
||||
#include <vector> // for vector
|
||||
|
||||
/**
|
||||
* @addtogroup open_addressing Open Addressing
|
||||
|
||||
@@ -6,9 +6,11 @@
|
||||
* hash](https://en.wikipedia.org/wiki/Quadratic_probing) keys.
|
||||
* @note The implementation can be optimized by using OOP style.
|
||||
*/
|
||||
#include <cmath>
|
||||
#include <iostream>
|
||||
#include <vector>
|
||||
#include <cmath> // for round, pow
|
||||
#include <cstddef> // for size_t
|
||||
#include <functional> // for hash
|
||||
#include <iostream> // for basic_ostream, operator<<, char_traits, cout
|
||||
#include <vector> // for vector
|
||||
|
||||
/**
|
||||
* @addtogroup open_addressing Open Addressing
|
||||
|
||||
@@ -12,14 +12,17 @@
|
||||
* used for authenticating software packages and secure password hashing.
|
||||
*/
|
||||
|
||||
#include <array> /// For std::array
|
||||
#include <cassert> /// For assert
|
||||
#include <cstdint> /// For uint8_t, uint32_t and uint64_t data types
|
||||
#include <iomanip> /// For std::setfill and std::setw
|
||||
#include <iostream> /// For IO operations
|
||||
#include <sstream> /// For std::stringstream
|
||||
#include <utility> /// For std::move
|
||||
#include <vector> /// For std::vector
|
||||
#include <array> // for array
|
||||
#include <cassert> // for assert
|
||||
#include <cstdint> // for uint32_t, uint8_t
|
||||
#include <iomanip> // for operator<<, setfill, setw, _Setfill, _Setw
|
||||
#include <iostream> // for char_traits, basic_ostream, operator<<, cout, hex
|
||||
#include <sstream> // for basic_stringstream
|
||||
#include <utility> // for move
|
||||
#include <vector> // for allocator, vector
|
||||
#include <cstddef> // for size_t
|
||||
#include <stdexcept> // for out_of_range
|
||||
#include <string> // for basic_string, string, operator==
|
||||
|
||||
/**
|
||||
* @namespace hashing
|
||||
|
||||
Reference in New Issue
Block a user