[#BloombergLP-bdlb-HasPrintMethod-03cc8]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::HasPrintMethod
:relfileprefix: ../../
:mrdocs:

A class, `TYPE`, should specialize this trait to derive from `true&lowbar;type` if it has a `print` method with the following signature&colon; &grave; bsl&colon;&colon;ostream&amp; print(bsl&colon;&colon;ostream&amp; stream, int level &equals; 0, int spacesPerLevel &equals; 4) const&semi; &grave;

== Synopsis

Declared in `&lt;bdlb&lowbar;printmethods&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
struct HasPrintMethod
    : bslmf::DetectNestedTrait&lt;TYPE, HasPrintMethod&gt;::type
----

== Base Classes

[cols="1,4"]
|===
| Name| Description
| `bslmf::DetectNestedTrait&lt;TYPE, HasPrintMethod&gt;::type`
| 
|===

== Specializations

[cols="1"]
|===
| Name
| xref:BloombergLP/bdlb/HasPrintMethod-0754.adoc[`HasPrintMethod&lt;balber::BerDecoderOptions&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-085f.adoc[`HasPrintMethod&lt;balber::BerEncoderOptions&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-014.adoc[`HasPrintMethod&lt;balb::Choice1&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-084.adoc[`HasPrintMethod&lt;balb::Choice2&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-073.adoc[`HasPrintMethod&lt;balb::Choice3&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-0cb7.adoc[`HasPrintMethod&lt;balb::Choice4&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-0d22.adoc[`HasPrintMethod&lt;balb::Choice5&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-099.adoc[`HasPrintMethod&lt;balb::CustomInt&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-0a1.adoc[`HasPrintMethod&lt;balb::CustomString&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-06ad.adoc[`HasPrintMethod&lt;baljsn::DecoderOptions&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-040.adoc[`HasPrintMethod&lt;balxml::DecoderOptions&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-0a0.adoc[`HasPrintMethod&lt;baljsn::EncoderOptions&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-052.adoc[`HasPrintMethod&lt;balxml::EncoderOptions&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-0d1a5.adoc[`HasPrintMethod&lt;baljsn::EncoderTestAddress&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-031.adoc[`HasPrintMethod&lt;baljsn::EncoderTestChoiceWithAllCategories&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-02f.adoc[`HasPrintMethod&lt;baljsn::EncoderTestChoiceWithAllCategoriesChoice&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-016.adoc[`HasPrintMethod&lt;baljsn::EncoderTestChoiceWithAllCategoriesCustomizedType&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-0afc.adoc[`HasPrintMethod&lt;baljsn::EncoderTestChoiceWithAllCategoriesSequence&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-0d0.adoc[`HasPrintMethod&lt;baljsn::EncoderTestDegenerateChoice1&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-06d.adoc[`HasPrintMethod&lt;baljsn::EncoderTestDegenerateChoice1Sequence&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-0cb0.adoc[`HasPrintMethod&lt;baljsn::EncoderTestEmployee&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-05f.adoc[`HasPrintMethod&lt;baljsn::EncoderTestSequenceWithAllCategories&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-028.adoc[`HasPrintMethod&lt;baljsn::EncoderTestSequenceWithAllCategoriesChoice&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-08e.adoc[`HasPrintMethod&lt;baljsn::EncoderTestSequenceWithAllCategoriesCustomizedType&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-091.adoc[`HasPrintMethod&lt;baljsn::EncoderTestSequenceWithAllCategoriesSequence&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-0ea.adoc[`HasPrintMethod&lt;baljsn::EncoderTestSequenceWithUntagged0&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-019a.adoc[`HasPrintMethod&lt;baljsn::EncoderTestSequenceWithUntagged1&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-0c8.adoc[`HasPrintMethod&lt;baljsn::EncoderTestSequenceWithUntagged10&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-025.adoc[`HasPrintMethod&lt;baljsn::EncoderTestSequenceWithUntagged10Sequence&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-04d.adoc[`HasPrintMethod&lt;baljsn::EncoderTestSequenceWithUntagged11&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-005.adoc[`HasPrintMethod&lt;baljsn::EncoderTestSequenceWithUntagged11Sequence&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-009.adoc[`HasPrintMethod&lt;baljsn::EncoderTestSequenceWithUntagged11Sequence1&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-00b.adoc[`HasPrintMethod&lt;baljsn::EncoderTestSequenceWithUntagged12&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-0c3.adoc[`HasPrintMethod&lt;baljsn::EncoderTestSequenceWithUntagged12Sequence&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-0e5a.adoc[`HasPrintMethod&lt;baljsn::EncoderTestSequenceWithUntagged13&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-01d.adoc[`HasPrintMethod&lt;baljsn::EncoderTestSequenceWithUntagged13Sequence&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-056.adoc[`HasPrintMethod&lt;baljsn::EncoderTestSequenceWithUntagged14&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-06a6.adoc[`HasPrintMethod&lt;baljsn::EncoderTestSequenceWithUntagged1Sequence&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-0192.adoc[`HasPrintMethod&lt;baljsn::EncoderTestSequenceWithUntagged2&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-067.adoc[`HasPrintMethod&lt;baljsn::EncoderTestSequenceWithUntagged3&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-076.adoc[`HasPrintMethod&lt;baljsn::EncoderTestSequenceWithUntagged3Sequence&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-007.adoc[`HasPrintMethod&lt;baljsn::EncoderTestSequenceWithUntagged3Sequence1&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-0f2.adoc[`HasPrintMethod&lt;baljsn::EncoderTestSequenceWithUntagged4&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-0d1a0.adoc[`HasPrintMethod&lt;baljsn::EncoderTestSequenceWithUntagged4Sequence&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-0855.adoc[`HasPrintMethod&lt;baljsn::EncoderTestSequenceWithUntagged5&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-0afd.adoc[`HasPrintMethod&lt;baljsn::EncoderTestSequenceWithUntagged5Sequence&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-0e7.adoc[`HasPrintMethod&lt;baljsn::EncoderTestSequenceWithUntagged6&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-02d.adoc[`HasPrintMethod&lt;baljsn::EncoderTestSequenceWithUntagged7&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-0fd.adoc[`HasPrintMethod&lt;baljsn::EncoderTestSequenceWithUntagged7Sequence&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-0e21.adoc[`HasPrintMethod&lt;baljsn::EncoderTestSequenceWithUntagged7Sequence1&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-0e25.adoc[`HasPrintMethod&lt;baljsn::EncoderTestSequenceWithUntagged7Sequence2&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-02c.adoc[`HasPrintMethod&lt;baljsn::EncoderTestSequenceWithUntagged8&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-03cca.adoc[`HasPrintMethod&lt;baljsn::EncoderTestSequenceWithUntagged8Sequence&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-093.adoc[`HasPrintMethod&lt;baljsn::EncoderTestSequenceWithUntagged8Sequence1&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-05e.adoc[`HasPrintMethod&lt;baljsn::EncoderTestSequenceWithUntagged9&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-062.adoc[`HasPrintMethod&lt;baljsn::EncoderTestSequenceWithUntagged9Sequence&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-07f.adoc[`HasPrintMethod&lt;baljsn::EncoderTestSequenceWithUntagged9Sequence1&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-0d23.adoc[`HasPrintMethod&lt;balb::FeatureTestMessage&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-0b2.adoc[`HasPrintMethod&lt;balb::Request&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-0b7.adoc[`HasPrintMethod&lt;balb::Response&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-058.adoc[`HasPrintMethod&lt;balb::Sequence1&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-0a6.adoc[`HasPrintMethod&lt;balb::Sequence2&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-0e55.adoc[`HasPrintMethod&lt;balb::Sequence3&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-051.adoc[`HasPrintMethod&lt;balb::Sequence4&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-0aa.adoc[`HasPrintMethod&lt;balb::Sequence5&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-053.adoc[`HasPrintMethod&lt;balb::Sequence6&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-094.adoc[`HasPrintMethod&lt;balb::SequenceWithAnonymity&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-066.adoc[`HasPrintMethod&lt;balb::SequenceWithAnonymityChoice&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-0d28.adoc[`HasPrintMethod&lt;balb::SequenceWithAnonymityChoice1&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-0758.adoc[`HasPrintMethod&lt;balb::SequenceWithAnonymityChoice2&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-08c.adoc[`HasPrintMethod&lt;balb::SimpleRequest&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-0a8.adoc[`HasPrintMethod&lt;balb::UnsignedSequence&gt;`] 
| xref:BloombergLP/bdlb/HasPrintMethod-0bc.adoc[`HasPrintMethod&lt;balb::VoidSequence&gt;`] 
|===



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