Not sure what java getDeclaredFields() does but c++ doesn't have reflection yet so it's not possible yet. Related: [https://stackoverflow.com/questions/68761022/reflection-ts-in-c23](https://stackoverflow.com/questions/68761022/reflection-ts-in-c23)
– drescherjmFeb 18 '22 at 13:25