Tesseract 0.28.4
Loading...
Searching...
No Matches
types_boost_hash.h File Reference

Boost hashing support for NameId and OrderedIdPair. More...

#include <tesseract/common/macros.h>
#include <boost/version.hpp>
#include <boost/container_hash/hash_fwd.hpp>
#include <cstddef>
#include <type_traits>
#include <tesseract/common/types.h>

Namespaces

namespace  tesseract::common
 Namespace owning boost's hash_is_avalanching, and defined iff boost has the trait at all.
 

Functions

template<typename Tag >
constexpr std::size_t tesseract::common::hash_value (const NameId< Tag > &id) noexcept
 ADL hook for boost::hash. Returns the cached id value; no rehash per lookup.
 
template<typename Tag >
std::size_t tesseract::common::hash_value (const OrderedIdPair< Tag > &p) noexcept
 ADL hook for boost::hash. Returns the cached combined hash; no rehash per lookup.
 

Detailed Description

Boost hashing support for NameId and OrderedIdPair.

Author
Roelof Oomen
Date
August 4, 2026
License
Software License Agreement (Apache License)
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.