Skip to content

Instantly share code, notes, and snippets.

@soxjke
Last active March 15, 2017 21:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save soxjke/ee04db954bd8c4797df96b557df2ea3f to your computer and use it in GitHub Desktop.
Save soxjke/ee04db954bd8c4797df96b557df2ea3f to your computer and use it in GitHub Desktop.
ObjC++ generic
@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