|
BDE 4.39.x Production Release
|
#include <bslma_aamodel.h>
Implementation of bslma::AAModel metafunction. Tries each of the specified MODEL1 to MODEL5 template arguments and sets the member typedef, type, to the first model that is supported by the specified TYPE. All arguments except the first are defaulted in the forward declaration.
type will not be defined if TYPE doesn't support at least one of the passed-in models.See bslma_aamodel
Public Types | |
| typedef bsl::conditional< AAModelIsSupported< TYPE, MODEL1 >::value, MODEL1, AAModel_Imp< TYPE, MODEL2, MODEL3, MODEL4, MODEL5 > >::type::type | type |
| typedef bsl::conditional<AAModelIsSupported<TYPE,MODEL1>::value,MODEL1,AAModel_Imp<TYPE,MODEL2,MODEL3,MODEL4,MODEL5>>::type::type bslma::AAModel_Imp< TYPE, MODEL1, MODEL2, MODEL3, MODEL4, MODEL5 >::type |
One of MODEL1 to MODEL5, indicating the model supported by TYPE. If multiple models are supported, then the first supported one in the template argument list is used.