Re-port memrchr
Summary: [Folly] Re-port memrchr, avoiding build-system detection. Proper detection at build-system time is challenging. * Some platforms do not define `memrchr`. * Some platforms define it as a C function. * Some platforms define it as a pair of C++ functions. Proper porting requires proper build-system detection. Rather than going down that rabbit-hole, we can wrap `memrchr` and do compile-time detection using SFINAE. This change adds a new strategy. A subsequent change may remove the old strategy. Reviewed By: Orvid Differential Revision: D22125127 fbshipit-source-id: 2da7cca571de335b2cff43ff7846ab04d90136ef
Showing
Please register or sign in to comment