[#BloombergLP-bsls-ProtocolTest-testNoDataMembers]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::xref:BloombergLP/bsls/ProtocolTest.adoc[ProtocolTest]::testNoDataMembers
:relfileprefix: ../../../
:mrdocs:

Return whether the protocol class being tested contains no data fields&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
testNoDataMembers();
----

== Description

Return `true` (i&period;e&period;, the test passed) if the protocol class being tested contains no data fields and return `false` (i&period;e&period;, the test failed) otherwise&period; Increase the count of `failures` and set `lastStatus` to `false` on failure&period;

== Return Value

`true` if the protocol has no data members&semi; `false` otherwise


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