|
JH-Toolkit v1.4.1
An engineering-oriented C++20 toolkit with duck-typed concepts, static design, async coroutines, and semantic containers — header-only, RTTI-free, and concurrency-friendly.
|
Concept checking whether key conversion through key_traits<K> is valid.
More...
#include <jh/metax/lookup_map.h>
Concept checking whether key conversion through key_traits<K> is valid.
Enables heterogeneous lookup by verifying that an input type T can be converted into the canonical key type K through key_traits<K>::to_canonical(). This supports efficient zero-overhead implicit transformation for lightweight or compile-time strings.
jh::pod::string_view is recommended for string keys, usually via "..."_psv. std::string_view (including "..."sv literals) into jh::pod::string_view safely. | K | Canonical key type of the lookup table. |
| T | Apparent input type to be checked for canonical conversion. |