A mixin that fires registered callbacks each time a class constructor runs.

Synopsis

Declared in <folly/ConstructorCallbackList.h>

template<
    class T,
    std::size_t MaxCallbacks = 4>
class ConstructorCallbackList;

Type Aliases

Name

Description

Callback

Callback invoked with a pointer to the constructed object.

CallbackArray

Fixed‐size array holding the registered callbacks.

This

This list type.

Member Functions

Name

Description

ConstructorCallbackList [constructor]

Construct the list and fire all registered callbacks for t.

Static Member Functions

Name

Description

addCallback

Add a callback to the static class that will fire every time someone creates a new one.

Static Data Members

Name

Description

kMaxCallbacks

Maximum number of callbacks that can be registered.

Created with MrDocs