folly::overload and folly::variant_match
authorPavel Aslanov <aslpavel@fb.com>
Wed, 26 Apr 2017 21:15:50 +0000 (14:15 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 26 Apr 2017 21:20:03 +0000 (14:20 -0700)
commit7d06adb42b4cfb52384c3e0c7a5e3a2ffe2a801c
tree994034879337ae4745b159586f808895b4a570d8
parent0ef8ce0d60996be2467fd4ccff324d4786243f27
folly::overload and folly::variant_match

Summary: Pattern matching like functionality for boost::vairant. See unittests for usage examples.

Reviewed By: yfeldblum, ericniebler

Differential Revision: D4851133

fbshipit-source-id: cda7dc766dac5870bcc4ab1859de0e4e7f0a6599
folly/DiscriminatedPtr.h
folly/Makefile.am
folly/Overload.h [new file with mode: 0644]
folly/test/DiscriminatedPtrTest.cpp
folly/test/OverloadTest.cpp [new file with mode: 0644]