P4C
The P4 Compiler
|
#include <rtti_utils.h>
A trait that check T is custom-RTTI-enabled. Works just like standard property type traits. One would normally use the _v variant. NOTE: Custom-RTTI-enabled classes should not only derive from RTTI::Base, but should also declare typeId properly. However, not doing so would be a bug and use of such class in RTTI-related operations would lead to static_assert failuire in RTTI::TypeInfo, so we just check the base.