|
proxygen
|
#include <Poly.h>
Classes | |
| struct | Interface |
Public Types | |
| using | Subsumptions = detail::TypeList< I... > |
| template<class... > | |
| using | Members = PolyMembers<> |
Used in the definition of a Poly interface to say that the current interface is an extension of a set of zero or more interfaces.
Example:
struct IFoo { template <class base>=""> struct Interface : Base { void foo() { folly::poly_call<0>(*this); } }; template <class t>=""> using Members = FOLLY_POLY_MEMBERS(&T::foo); } struct IBar : PolyExtends<IFoo> { template <class base>=""> struct Interface : Base { void bar(int i) { folly::poly_call<0>(*this, i); } }; template <class t>=""> using Members = FOLLY_POLY_MEMBERS(&T::bar); }
| using folly::PolyExtends< I >::Subsumptions = detail::TypeList<I...> |