Make MP42Fifo a generic container.
This commit is contained in:
1 parent
68e2ec30a4
commit
a074653ec1
1 file changed
+4
-4
+4
-4
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
NS_ASSUME_NONNULL_BEGIN
|
NS_ASSUME_NONNULL_BEGIN
|
||||||
|
|
||||||
@interface MP42Fifo : NSObject {
|
@interface MP42Fifo<__covariant ObjectType> : NSObject {
|
||||||
@private
|
@private
|
||||||
id *_array;
|
id *_array;
|
||||||
|
|
||||||
@@ -29,9 +29,9 @@ NS_ASSUME_NONNULL_BEGIN
|
|||||||
- (instancetype)init;
|
- (instancetype)init;
|
||||||
- (instancetype)initWithCapacity:(NSUInteger)numItems;
|
- (instancetype)initWithCapacity:(NSUInteger)numItems;
|
||||||
|
|
||||||
- (void)enqueue:(id)item;
|
- (void)enqueue:(ObjectType)item;
|
||||||
- (nullable id)deque NS_RETURNS_RETAINED;
|
- (nullable ObjectType)deque NS_RETURNS_RETAINED;
|
||||||
- (nullable id)dequeAndWait NS_RETURNS_RETAINED;
|
- (nullable ObjectType)dequeAndWait NS_RETURNS_RETAINED;
|
||||||
|
|
||||||
- (NSUInteger)count;
|
- (NSUInteger)count;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user