util: introduce helper AnyPtr to access std::any instances
util: introduce helper AnyPtr to access std::any instances

Co-authored-by: Russell Yanofsky <d1818e90f775d1fa111cabb0c1a59ce802530221@yanofsky.org>

particl/particl-core,achow101/bitcoin,dscotese/bitcoin,yenliangl/bitcoin,fujicoin/fujicoin,sstone/bitcoin,MarcoFalke/bitcoin,kallewoof/bitcoin,rnicoll/bitcoin,sipsorcery/bitcoin,achow101/bitcoin,jamesob/bitcoin,anditto/bitcoin,andreaskern/bitcoin,particl/particl-core,rnicoll/bitcoin,qtumproject/qtum,jambolo/bitcoin,kallewoof/bitcoin,ajtowns/bitcoin,dscotese/bitcoin,qtumproject/qtum,domob1812/namecore,kallewoof/bitcoin,domob1812/bitcoin,apoelstra/bitcoin,apoelstra/bitcoin,namecoin/namecore,mruddy/bitcoin,AkioNak/bitcoin,instagibbs/bitcoin,GroestlCoin/GroestlCoin,Xekyo/bitcoin,ajtowns/bitcoin,ElementsProject/elements,sstone/bitcoin,lateminer/bitcoin,bitcoinsSG/bitcoin,pataquets/namecoin-core,bitcoinknots/bitcoin,jamesob/bitcoin,fujicoin/fujicoin,mm-s/bitcoin,prusnak/bitcoin,rnicoll/bitcoin,GroestlCoin/bitcoin,MarcoFalke/bitcoin,domob1812/namecore,instagibbs/bitcoin,jamesob/bitcoin,namecoin/namecore,fujicoin/fujicoin,achow101/bitcoin,fanquake/bitcoin,fujicoin/fujicoin,andreaskern/bitcoin,dscotese/bitcoin,domob1812/namecore,dscotese/bitcoin,GroestlCoin/GroestlCoin,ajtowns/bitcoin,sipsorcery/bitcoin,namecoin/namecoin-core,mm-s/bitcoin,jlopp/statoshi,instagibbs/bitcoin,bitcoin/bitcoin,namecoin/namecoin-core,domob1812/namecore,rnicoll/bitcoin,ElementsProject/elements,JeremyRubin/bitcoin,bitcoinknots/bitcoin,ajtowns/bitcoin,namecoin/namecore,domob1812/bitcoin,bitcoinsSG/bitcoin,namecoin/namecoin-core,yenliangl/bitcoin,pataquets/namecoin-core,jlopp/statoshi,mm-s/bitcoin,andreaskern/bitcoin,jlopp/statoshi,andreaskern/bitcoin,sipsorcery/bitcoin,qtumproject/qtum,namecoin/namecore,mruddy/bitcoin,AkioNak/bitcoin,GroestlCoin/GroestlCoin,fanquake/bitcoin,Xekyo/bitcoin,JeremyRubin/bitcoin,ajtowns/bitcoin,bitcoin/bitcoin,MarcoFalke/bitcoin,GroestlCoin/GroestlCoin,bitcoinknots/bitcoin,GroestlCoin/bitcoin,pataquets/namecoin-core,ElementsProject/elements,bitcoinknots/bitcoin,pataquets/namecoin-core,lateminer/bitcoin,anditto/bitcoin,GroestlCoin/bitcoin,fujicoin/fujicoin,anditto/bitcoin,dscotese/bitcoin,qtumproject/qtum,qtumproject/qtum,namecoin/namecoin-core,fanquake/bitcoin,lateminer/bitcoin,tecnovert/particl-core,GroestlCoin/bitcoin,achow101/bitcoin,anditto/bitcoin,prusnak/bitcoin,yenliangl/bitcoin,achow101/bitcoin,domob1812/namecore,apoelstra/bitcoin,JeremyRubin/bitcoin,sstone/bitcoin,apoelstra/bitcoin,GroestlCoin/GroestlCoin,pataquets/namecoin-core,mm-s/bitcoin,jlopp/statoshi,sipsorcery/bitcoin,tecnovert/particl-core,fanquake/bitcoin,anditto/bitcoin,yenliangl/bitcoin,ajtowns/bitcoin,lateminer/bitcoin,JeremyRubin/bitcoin,jamesob/bitcoin,sipsorcery/bitcoin,ElementsProject/elements,bitcoin/bitcoin,fanquake/bitcoin,sstone/bitcoin,tecnovert/particl-core,andreaskern/bitcoin,apoelstra/bitcoin,jambolo/bitcoin,qtumproject/qtum,bitcoinsSG/bitcoin,ElementsProject/elements,dscotese/bitcoin,jlopp/statoshi,yenliangl/bitcoin,prusnak/bitcoin,sstone/bitcoin,apoelstra/bitcoin,jambolo/bitcoin,prusnak/bitcoin,instagibbs/bitcoin,sstone/bitcoin,domob1812/bitcoin,particl/particl-core,namecoin/namecore,tecnovert/particl-core,prusnak/bitcoin,domob1812/bitcoin,GroestlCoin/GroestlCoin,MarcoFalke/bitcoin,bitcoin/bitcoin,AkioNak/bitcoin,anditto/bitcoin,instagibbs/bitcoin,rnicoll/bitcoin,bitcoinknots/bitcoin,qtumproject/qtum,jambolo/bitcoin,jamesob/bitcoin,tecnovert/particl-core,jlopp/statoshi,GroestlCoin/bitcoin,MarcoFalke/bitcoin,instagibbs/bitcoin,prusnak/bitcoin,kallewoof/bitcoin,Xekyo/bitcoin,JeremyRubin/bitcoin,jamesob/bitcoin,GroestlCoin/bitcoin,Xekyo/bitcoin,domob1812/namecore,bitcoin/bitcoin,domob1812/bitcoin,tecnovert/particl-core,AkioNak/bitcoin,lateminer/bitcoin,kallewoof/bitcoin,jambolo/bitcoin,andreaskern/bitcoin,AkioNak/bitcoin,particl/particl-core,ElementsProject/elements,fujicoin/fujicoin,bitcoinsSG/bitcoin,namecoin/namecoin-core,achow101/bitcoin,fanquake/bitcoin,domob1812/bitcoin,particl/particl-core,yenliangl/bitcoin,mruddy/bitcoin,bitcoinsSG/bitcoin,bitcoinsSG/bitcoin,namecoin/namecore,particl/particl-core,JeremyRubin/bitcoin,pataquets/namecoin-core,MarcoFalke/bitcoin,AkioNak/bitcoin,Xekyo/bitcoin,mm-s/bitcoin,mruddy/bitcoin,rnicoll/bitcoin,lateminer/bitcoin,namecoin/namecoin-core,kallewoof/bitcoin,mruddy/bitcoin,Xekyo/bitcoin,mruddy/bitcoin,mm-s/bitcoin,sipsorcery/bitcoin,jambolo/bitcoin,bitcoin/bitcoin