22OF_ASSUME_NONNULL_BEGIN
31#if !defined(OF_HAVE_GENERICS) && !defined(DOXYGEN)
36 FirstType _Nullable _firstObject;
37 SecondType _Nullable _secondObject;
38 OF_RESERVE_IVARS(
OFPair, 4)
44@property OF_NULLABLE_PROPERTY (readonly, nonatomic, retain)
45 FirstType firstObject;
50@property OF_NULLABLE_PROPERTY (readonly, nonatomic, retain)
51 SecondType secondObject;
60+ (instancetype)pairWithFirstObject: (nullable FirstType)firstObject
61 secondObject: (nullable SecondType)secondObject;
70- (instancetype)initWithFirstObject: (nullable FirstType)firstObject
71 secondObject: (nullable SecondType)secondObject
72 OF_DESIGNATED_INITIALIZER;
73#if !defined(OF_HAVE_GENERICS) && !defined(DOXYGEN)
81#import "OFMutablePair.h"
The root class for all other classes inside ObjFW.
Definition OFObject.h:692
A class for storing a pair of two objects.
Definition OFPair.h:40
A protocol for the creation of copies.
Definition OFObject.h:1350
A protocol for the creation of mutable copies.
Definition OFObject.h:1371