語言

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)。

適用於