18 OF_ASSUME_NONNULL_BEGIN
27 #if !defined(OF_HAVE_GENERICS) && !defined(DOXYGEN)
29 # define SecondType id
32 FirstType _Nullable _firstObject;
33 SecondType _Nullable _secondObject;
34 OF_RESERVE_IVARS(
OFPair, 4)
40 @property OF_NULLABLE_PROPERTY (readonly, nonatomic, retain)
41 FirstType firstObject;
46 @property OF_NULLABLE_PROPERTY (readonly, nonatomic, retain)
47 SecondType secondObject;
56 + (instancetype)pairWithFirstObject: (nullable FirstType)firstObject
57 secondObject: (nullable SecondType)secondObject;
66 - (instancetype)initWithFirstObject: (nullable FirstType)firstObject
67 secondObject: (nullable SecondType)secondObject
68 OF_DESIGNATED_INITIALIZER;
69 #if !defined(OF_HAVE_GENERICS) && !defined(DOXYGEN)
77 #import "OFMutablePair.h"
The root class for all other classes inside ObjFW.
Definition: OFObject.h:520
A class for storing a pair of two objects.
Definition: OFPair.h:36
A protocol for the creation of copies.
Definition: OFObject.h:1187
A protocol for the creation of mutable copies.
Definition: OFObject.h:1208