P4C
The P4 Compiler
Loading...
Searching...
No Matches
P4::RTTI::enable_if_has_rtti< T, R > Struct Template Reference

#include <rtti_utils.h>

Inheritance diagram for P4::RTTI::enable_if_has_rtti< T, R >:
[legend]

Detailed Description

template<typename T, typename R = void>
struct P4::RTTI::enable_if_has_rtti< T, R >

A type condition for checking that T is custom-RTTI-enabled. A specialization of std::enable_if and can be used in the same way.

Template Parameters
TThe type to be checked.
RThe type that will be used for the type member if T is custom-rtti-enabled. Defaults to void.