语言

ITree<TKey,TValue>.key_comp 方法

定义

返回用于对受控序列进行排序的排序委托。 用于对两个键进行比较。

public:
 Microsoft::VisualC::StlClr::BinaryDelegate<TKey, TKey, bool> ^ key_comp();
public Microsoft.VisualC.StlClr.BinaryDelegate<TKey,TKey,bool> key_comp();
abstract member key_comp : unit -> Microsoft.VisualC.StlClr.BinaryDelegate<'Key, 'Key, bool>
Public Function key_comp () As BinaryDelegate(Of TKey, TKey, Boolean)

返回

BinaryDelegate<TKey,TKey,Boolean>

用于对受控序列进行排序的排序委托。

注解

有关详细信息,请参阅hash_map::key_comp(STL/CLR),hash_multimap::key_comp(STL/CLR),hash_set::key_comp(STL/CLR)和hash_multiset::key_comp(STL/CLR)。

适用于