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.
Synopsis
Declared in <folly/Poly.h>
template<class... I>
struct PolyExtends
: virtual I...
Description
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); }
Base Classes
Name |
Description |
|
Types
Name |
Description |
The interface mixin inherited by extending interfaces. |
Type Aliases
Name |
Description |
The (empty) member list contributed by this extension. |
|
The list of interfaces this interface subsumes. |
Derived Classes
Name |
Description |
A |
|
A |
|
A |
|
A |
|
A |
|
A |
|
A |
Created with MrDocs