Last active
March 15, 2017 21:18
-
-
Save soxjke/ee04db954bd8c4797df96b557df2ea3f to your computer and use it in GitHub Desktop.
ObjC++ generic
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@interface DBManager<ObjCType, CPPType> : NSObject | |
- (ObjCType)performOperation:(darkmatter::Result<CPPType> (^)())operation | |
withMap:(ObjCType (^)(darkmatter::Result<CPPType> fetchedObject))map | |
returningError:(NSError **)error; | |
@end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment