Use a sample to indicate a reader EOF.

This commit is contained in:
Damiano Galassi committed 2016-07-23 17:20:31 +02:00
1 parent 54437f9030
commit 6a2b4a1fad
12 files changed
+121 -71

No files matched your search

+1 -8
View File
@@ -14,14 +14,7 @@ NS_ASSUME_NONNULL_BEGIN
* A simple heap/priority queue implementations with a static size.
* It takes a NSComparator in input.
*/
@interface MP42Heap<ObjectType> : NSObject {
@private
id *_array;
uint64 _size;
uint64 _len;
NSComparator _cmptr;
}
@interface MP42Heap<ObjectType> : NSObject
- (instancetype)initWithCapacity:(NSUInteger)numItems andComparator:(NSComparator)cmptr;