[#BloombergLP-bslx-VersionFunctions-maxSupportedBdexVersion-09]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslx.adoc[bslx]::xref:BloombergLP/bslx/VersionFunctions.adoc[VersionFunctions]::maxSupportedBdexVersion
:relfileprefix: ../../../
:mrdocs:

Return the maximum valid BDEX format version, as indicated by the specified `versionSelector`, to be passed to the `bdexStreamOut` method while streaming an object of the (template parameter) type `TYPE`&period; Note that it is highly recommended that `versionSelector` be formatted as &quot;YYYYMMDD&quot;, a date representation&period; Also note that `versionSelector` should be a _compile_&hyphen;time&hyphen;chosen value that selects a format version supported by both externalizer and unexternalizer&period; Also note that this function ignores any `const` and `volatile` qualifiers on the `TYPE`&period; See the `bslx` package&hyphen;level documentation for more information on BDEX streaming of value&hyphen;semantic types and containers&period;

== Synopsis

Declared in `&lt;bslx&lowbar;versionfunctions&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
int
maxSupportedBdexVersion(
    TYPE const*,
    int versionSelector);
----


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