diff --git a/src/tiffimage_int.hpp b/src/tiffimage_int.hpp index b8f6aadd56..c85285ec94 100644 --- a/src/tiffimage_int.hpp +++ b/src/tiffimage_int.hpp @@ -5,6 +5,7 @@ // ***************************************************************************** // included header files +#include #include "image.hpp" #include "tiffcomposite_int.hpp" #include "tifffwd_int.hpp" @@ -146,13 +147,19 @@ struct TiffImgTagStruct { IfdId group_; //!< Group that contains the image tag }; // struct TiffImgTagStruct -typedef std::pair TiffGroupKey; +using TiffGroupKey = std::pair; + +struct TiffGroupKey_hash { + std::size_t operator()(const TiffGroupKey& pair) const { + return std::hash{}(static_cast(pair.first) << 32 | static_cast(pair.second)); + } +}; /*! @brief Data structure used as a row (element) of a table (array) defining the TIFF component used for each tag in a group. */ -typedef std::map TiffGroupTable; +using TiffGroupTable = std::unordered_map; /*! @brief Data structure used as a row of the table which describes TIFF trees.