18OF_ASSUME_NONNULL_BEGIN
27#if !defined(OF_HAVE_GENERICS) && !defined(DOXYGEN)
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:688
A class for storing a pair of two objects.
Definition OFPair.h:36
A protocol for the creation of copies.
Definition OFObject.h:1346
A protocol for the creation of mutable copies.
Definition OFObject.h:1367