[#BloombergLP-bdlb-TypeTraitHasPrintMethod-NestedTraitDeclaration] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/TypeTraitHasPrintMethod.adoc[TypeTraitHasPrintMethod]::NestedTraitDeclaration :relfileprefix: ../../../ :mrdocs: This class template ties the `bdlb::TypeTraitHasPrintMethod` trait tag to the `bdlb::HasPrintMethod` trait metafunction. == Synopsis Declared in `<bdlb_printmethods.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> struct NestedTraitDeclaration : xref:BloombergLP/bslmf/NestedTraitDeclaration.adoc[bslmf::NestedTraitDeclaration<TYPE, HasPrintMethod>] ---- == Base Classes [cols="1,4"] |=== | Name| Description | `xref:BloombergLP/bslmf/NestedTraitDeclaration.adoc[bslmf::NestedTraitDeclaration<TYPE, HasPrintMethod>]` | Class `t_TYPE` will be convertible to `NestedTraitDeclaration<t_TYPE,t_TRAIT,true>` if `t_TRAIT` is associated with `t_TYPE` using the `BSLMF_NESTED_TRAIT_DECLARATION` macro. Nested trait detection depends on `t_COND` being true. If `t_COND` is false, the nested trait detection will not see the conversion it is looking for and will not associate `t_TRAIT` with `t_TYPE`. This feature is used by `BSLMF_NESTED_TRAIT_DECLARATION_IF` to turn a trait on or off depending on a compile‐time condition (usually another trait). |=== == Type Aliases [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslmf/NestedTraitDeclaration/Type.adoc[`Type`] | This `typedef` is an alias to `NestedTraitDeclaration`. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#