[#llvm-ImutKeyValueInfo] = xref:llvm.adoc[llvm]::ImutKeyValueInfo :relfileprefix: ../ :mrdocs: Traits class used by ImmutableMap. == Synopsis Declared in `<llvm/ADT/ImmutableMap.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename T, typename S> struct ImutKeyValueInfo; ---- == Description While both the first and second elements in a pair are used to generate profile information, only the first element (the key) is used by isEqual and isLess. == Type Aliases [cols="1,4"] |=== | Name| Description | xref:llvm/ImutKeyValueInfo/data_type.adoc[`data_type`] | The type of a stored map value (second element of the pair). | xref:llvm/ImutKeyValueInfo/data_type_ref.adoc[`data_type_ref`] | A reference to a map value. | xref:llvm/ImutKeyValueInfo/key_type.adoc[`key_type`] | The key type used for ordering and equality. | xref:llvm/ImutKeyValueInfo/key_type_ref.adoc[`key_type_ref`] | A reference to a map key. | xref:llvm/ImutKeyValueInfo/value_type.adoc[`value_type`] | The type of a stored map entry (key and value pair). | xref:llvm/ImutKeyValueInfo/value_type_ref.adoc[`value_type_ref`] | A reference to a stored map entry. |=== == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:llvm/ImutKeyValueInfo/DataOfValue.adoc[`DataOfValue`] | Returns the value (second element) of a stored map entry. | xref:llvm/ImutKeyValueInfo/KeyOfValue.adoc[`KeyOfValue`] | Returns the key (first element) of a stored map entry. | xref:llvm/ImutKeyValueInfo/Profile.adoc[`Profile`] | Adds profile data for a map entry to `ID,` using both key and value. | xref:llvm/ImutKeyValueInfo/isDataEqual.adoc[`isDataEqual`] | Returns true if the stored values `L` and `R` are equal. | xref:llvm/ImutKeyValueInfo/isEqual.adoc[`isEqual`] | Returns true if `L` and `R` are equal keys. | xref:llvm/ImutKeyValueInfo/isLess.adoc[`isLess`] | Returns true if `L` is ordered before `R` in the tree. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#