Make MP42Fifo a generic container.

This commit is contained in:
galad87 authored and Damiano Galassi committed 2015-08-26 17:25:40 +02:00
1 parent 68e2ec30a4
commit a074653ec1
1 file changed
+4 -4
+4 -4
View File
@@ -10,7 +10,7 @@
NS_ASSUME_NONNULL_BEGIN
@interface MP42Fifo : NSObject {
@interface MP42Fifo<__covariant ObjectType> : NSObject {
@private
id *_array;
@@ -29,9 +29,9 @@ NS_ASSUME_NONNULL_BEGIN
- (instancetype)init;
- (instancetype)initWithCapacity:(NSUInteger)numItems;
- (void)enqueue:(id)item;
- (nullable id)deque NS_RETURNS_RETAINED;
- (nullable id)dequeAndWait NS_RETURNS_RETAINED;
- (void)enqueue:(ObjectType)item;
- (nullable ObjectType)deque NS_RETURNS_RETAINED;
- (nullable ObjectType)dequeAndWait NS_RETURNS_RETAINED;
- (NSUInteger)count;