/** * Stores any subclass `T` of `Base`, where sizeof(T) <= `Size`, without using the heap. * Doesn't need advance knowledge of T, so it's particularly suited to platform or backend * implementations of a generic interface, where the set of possible subclasses is finite and * known, but can't be made available at compile-time.
*/ template <typename Base, size_t Size> class SkAnySubclass { public:
SkAnySubclass() = default;
~SkAnySubclass() {
this->reset();
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.