[#BloombergLP-bdlat_TypeTraitBasicChoice-NestedTraitDeclaration]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlat_TypeTraitBasicChoice.adoc[bdlat&lowbar;TypeTraitBasicChoice]::NestedTraitDeclaration
:relfileprefix: ../../
:mrdocs:

This class template ties the `bdlat&lowbar;TypeTraitBasicChoice` trait tag to the `bdlat&lowbar;IsBasicChoice` trait metafunction&period;

== Synopsis

Declared in `&lt;bdlat&lowbar;typetraits&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
struct NestedTraitDeclaration
    : xref:BloombergLP/bslmf/NestedTraitDeclaration.adoc[bslmf::NestedTraitDeclaration&lt;TYPE, bdlat&lowbar;IsBasicChoice&gt;]
----

== Base Classes

[cols="1,4"]
|===
| Name| Description
| `xref:BloombergLP/bslmf/NestedTraitDeclaration.adoc[bslmf::NestedTraitDeclaration&lt;TYPE, bdlat&lowbar;IsBasicChoice&gt;]`
| Class `t&lowbar;TYPE` will be convertible to `NestedTraitDeclaration&lt;t&lowbar;TYPE,t&lowbar;TRAIT,true&gt;` if `t&lowbar;TRAIT` is associated with `t&lowbar;TYPE` using the `BSLMF&lowbar;NESTED&lowbar;TRAIT&lowbar;DECLARATION` macro&period; Nested trait detection depends on `t&lowbar;COND` being true&period; If `t&lowbar;COND` is false, the nested trait detection will not see the conversion it is looking for and will not associate `t&lowbar;TRAIT` with `t&lowbar;TYPE`&period; This feature is used by `BSLMF&lowbar;NESTED&lowbar;TRAIT&lowbar;DECLARATION&lowbar;IF` to turn a trait on or off depending on a compile&hyphen;time condition (usually another trait)&period;
|===

== Type Aliases

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslmf/NestedTraitDeclaration/Type.adoc[`Type`] 
| This `typedef` is an alias to `NestedTraitDeclaration`&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
