[#BloombergLP-bsls-ProtocolTest_Dtor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::ProtocolTest&lowbar;Dtor
:relfileprefix: ../../
:mrdocs:

This class template is a helper protocol&hyphen;test implementation class that tests that a protocol destructor is declared `virtual`, which it does by calling the `markDone` function from its destructor&period; The destructor will be executed if the protocol&apos;s destructor is declared `virtual` and not executed otherwise&period; Note that the `BSLS&lowbar;TESTIMP` template parameter is required to be a type derived from `ProtocolTestImp` class&period;

== Synopsis

Declared in `&lt;bsls&lowbar;protocoltest&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class BSLS&lowbar;TESTIMP&gt;
struct ProtocolTest&lowbar;Dtor
    : BSLS&lowbar;TESTIMP
----

== Base Classes

[cols="1,4"]
|===
| Name| Description
| `BSLS&lowbar;TESTIMP`
| 
|===

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bsls/ProtocolTest_Dtor/2destructor.adoc[`&#126;ProtocolTest&lowbar;Dtor`] [.small]#[destructor]#
| Destroy this object and call the `markDone` method, indicating that the base class&apos;s destructor was declared `virtual`&period;
|===



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