#include <apibase.h>
This transformation type trait can be used to add a const qualifier to a type T only if another type INHERIT_FROM also has this qualifier. InheritConst<T, S>::type will be T if S has no top-level const qualifier, const T otherwise.
| T | Type to which a const qualifier shall be added conditionally. |
| INHERIT_FROM | Another type from which the const qualifier shall be inherited. |
Public Types | |
| using | type = T |
| using type = T |
The result type, either T or const T.