Return a pointer to the current state if it is of type T, otherwise nullptr.

Synopses

Declared in <wallet/transaction.h>

Return a pointer to the current state if it is of type T, otherwise nullptr.

template<typename T>
T const*
state() const;

Return a pointer to the current state if it is of type T, otherwise nullptr.

template<typename T>
T*
state();

Return Value

A pointer to the state if it holds type T, otherwise nullptr.

Created with MrDocs