Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
クラス固有でなくても、プログラムでオブジェクトのすべての属性を取得する方法はありますか。
はい.. まず、C++ ファイルを解析できます ;).. clang.. を見てください。
あなたが達成しようとしているものに依存します-あなたが話しているその反映である場合-いいえ、それは言語の機能ではありません。
いいえ、これを行う方法はありませんが、ほとんどの場合、そうする必要はありません。