[#BloombergLP-bsls-ProtocolTest_Dtor] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::ProtocolTest_Dtor :relfileprefix: ../../ :mrdocs: This class template is a helper protocol‐test implementation class that tests that a protocol destructor is declared `virtual`, which it does by calling the `markDone` function from its destructor. The destructor will be executed if the protocol's destructor is declared `virtual` and not executed otherwise. Note that the `BSLS_TESTIMP` template parameter is required to be a type derived from `ProtocolTestImp` class. == Synopsis Declared in `<bsls_protocoltest.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class BSLS_TESTIMP> struct ProtocolTest_Dtor : BSLS_TESTIMP ---- == Base Classes [cols="1,4"] |=== | Name| Description | `BSLS_TESTIMP` | |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bsls/ProtocolTest_Dtor/2destructor.adoc[`~ProtocolTest_Dtor`] [.small]#[destructor]# | Destroy this object and call the `markDone` method, indicating that the base class's destructor was declared `virtual`. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#