Class lsst::afw::typehandling::Key¶
-
template<typename
K
, typenameV
>
classKey
¶ Key for type-safe lookup in a GenericMap.
Key objects are equality-comparable, hashable, sortable, or printable if and only if
K
is comparable, hashable, sortable, or printable, respectively. Key can be used in compile-time expressions if and only ifK
can (in particular,Key<std::string, V>
cannot).- Template Parameters
K
: the logical type of the key (e.g., a string)V
: the type of the value mapped to this key