density
C++11 library for paged memory management, function queues, heterogeneous queues and lifo memory management
Public Member Functions | Static Public Member Functions | List of all members
f_hash Class Reference

#include <runtime_type.h>

Public Member Functions

DENSITY_NODISCARD size_t operator() (const void *i_source) const noexcept
 

Static Public Member Functions

template<typename TARGET_TYPE >
static constexpr f_hash make () noexcept
 

Detailed Description

This feature invokes std::hash on an instance of the target type. Specializations of std::hash must be nothrow default constructible and nothrow invokable.

Member Function Documentation

static constexpr f_hash make ( )
inlinestaticnoexcept

Creates an instance of this feature bound to the specified target type

DENSITY_NODISCARD size_t operator() ( const void *  i_source) const
inlinenoexcept

Computes the hash of an instance of the target type object.

Parameters
i_sourcepointer to an instance of the target type. Can't be null. If the dynamic type of the pointed object is not the target type (assigned by the function make), the behavior is undefined.

The documentation for this class was generated from the following file: