qb  2.0.0.0
C++17 Actor Framework
qb Issue Watch Star Fork Follow @isndev
Loading...
Searching...
No Matches
functional.h File Reference

Functional utilities, primarily for hash computations. More...

#include <functional>
Include dependency graph for functional.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename... Types>
size_t qb::hash_combine (const Types &...args)
 Combines the hash values of multiple objects into a single hash value.

Detailed Description

Functional utilities, primarily for hash computations.

This file provides utility functions for combining hash values of multiple objects, which is useful for creating composite hash functions for custom types or for use in containers like qb::unordered_map and qb::unordered_set when a custom hasher for a key type is needed.

Author
qb - C++ Actor Framework

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.