NSBinarySearchingOptions
検索挿入へのオプション。indexOfObject:inSortedRange:options:usingComparator:で使用します。
enum {
NSBinarySearchingFirstEqual = (1 << 8),
NSBinarySearchingLastEqual = (1 << 9),
NSBinarySearchingInsertionIndex = (1 << 10),
}
typedef NSUInteger NSBinarySearchingOptions;
Constants
NSBinarySearchingFirstEqual
あたえられた範囲にある、あたえられたオブジェクトと等しいと、最初に見つかったオブジェクトを返す検索を指定します。
Available in OS X v10.6 and later.
Declared in NSArray.h.
NSBinarySearchingLastEqual
あたえられた範囲にある、あたえられたオブジェクトと等しいと、最後に見つかったオブジェクトを返す検索を指定します。
Available in OS X v10.6 and later.
Declared in NSArray.h.
NSBinarySearchingInsertionIndex
ソートされた配列の順序を維持できるように、オブジェクトを挿入できるインデックスを返します。
Available in OS X v10.6 and later.
Declared in NSArray.h.
Copyright © 2013 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2013-10-22
- This document is referred from the original, NSArray Class Reference, Mac Developer LibraryDeveloperSearch, updated in 2013-10-22.
documentation/Cocoa/Reference/Foundation/Classes/NSArray_Class/DeprecationAppendix