Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::hash_table_detail::Class_Convertible_To_Ptr Concept Reference

A class type that converts to the function pointer type Ptr. More...

#include <hash-dry.H>

Concept definition

template<typename H, typename Ptr>
std::is_class_v<std::remove_cvref_t<H>> and std::is_convertible_v<H, Ptr>
A class type that converts to the function pointer type Ptr.
Definition hash-dry.H:153
and
Check uniqueness with explicit hash + equality functors.

Detailed Description

A class type that converts to the function pointer type Ptr.

A lambda without captures is the usual case. Such an object fits a parameter of type std::function and one of type Ptr equally well, so a call that could bind it to either is ambiguous. The hash tables use this concept to give those calls a constructor of their own.

Template Parameters
HThe type of the argument, as deduced for a forwarding reference.
PtrThe function pointer type.

Definition at line 153 of file hash-dry.H.