[#BloombergLP-bbldc-DayCountConvention]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bbldc.adoc[bbldc]::DayCountConvention
:relfileprefix: ../../
:mrdocs:

This `struct` provides a namespace for enumerating the set of day&hyphen;count conventions supported within `bbldc`&period; See `Enum` in the `TYPES` sub&hyphen;section for details&period;

== Synopsis

Declared in `&lt;bbldc&lowbar;daycountconvention&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct DayCountConvention;
----

== Description

This `struct`&colon; &ast; supports a complete set of _enumeration_ operations For terminology see `bsldoc&lowbar;glossary`&period;

== Type Aliases

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bbldc/DayCountConvention/Type.adoc[`Type`] 
| Deprecated alias for `Enum`&period;
|===


== Enums

[cols="1"]
|===
| Name
| xref:BloombergLP/bbldc/DayCountConvention/Enum.adoc[`Enum`] 
|===


== Static Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bbldc/DayCountConvention/bdexStreamIn.adoc[`bdexStreamIn`] 
| Assign to the specified `variable` the value read from the specified input `stream` using the specified `version` format, and return a reference to `stream`&period; If `stream` is initially invalid, this operation has no effect&period; If `version` is not supported, `variable` is unaltered and `stream` is invalidated, but otherwise unmodified&period; If `version` is supported but `stream` becomes invalid during this operation, `variable` has an undefined, but valid, state&period; Note that no version is read from `stream`&period; See the `bslx` package&hyphen;level documentation for more information on BDEX streaming of value&hyphen;semantic types and containers&period;
| xref:BloombergLP/bbldc/DayCountConvention/bdexStreamOut.adoc[`bdexStreamOut`] 
| Write the value of the specified `value`, using the specified `version` format, to the specified output `stream`, and return a reference to `stream`&period; If `stream` is initially invalid, this operation has no effect&period; If `version` is not supported, `stream` is invalidated, but otherwise unmodified&period; Note that `version` is not written to `stream`&period; See the `bslx` package&hyphen;level documentation for more information on BDEX streaming of value&hyphen;semantic types and containers&period;
| xref:BloombergLP/bbldc/DayCountConvention/maxSupportedBdexVersion-08.adoc[`maxSupportedBdexVersion`] 
| `maxSupportedBdexVersion` overloads
| xref:BloombergLP/bbldc/DayCountConvention/print.adoc[`print`] 
| Write the string representation of the specified enumeration `value` to the specified output `stream`, and return a reference to `stream`&period; Optionally specify an initial indentation `level`, whose absolute value is incremented recursively for nested objects&period; If `level` is specified, optionally specify `spacesPerLevel`, whose absolute value indicates the number of spaces per indentation level for this and all of its nested objects&period; If `level` is negative, suppress indentation of the first line&period; If `spacesPerLevel` is negative, format the entire output on one line, suppressing all but the initial indentation (as governed by `level`)&period; The behavior is undefined unless `value` is in the range `&lsqb;e&lowbar;ACTUAL&lowbar;360 &period;&period; e&lowbar;ISDA&lowbar;1&lowbar;1&rsqb;`&period; See `toAscii` for what constitutes the string representation of a `bbldc&colon;&colon;DayCountConvention&colon;&colon;Enum` value&period;
| xref:BloombergLP/bbldc/DayCountConvention/toAscii.adoc[`toAscii`] 
| Return the abbreviated character&hyphen;string representation of the enumerator corresponding to the specified `convention`&period; This representation matches the enumerator&apos;s name (e&period;g&period;, `e&lowbar;ACTUAL&lowbar;360`) with the &quot;e&lowbar;&quot; prefix elided&period; For example&colon; &grave; bsl&colon;&colon;cout &lt;&lt; bbldc&colon;&colon;DayCountConvention&colon;&colon;toAscii( bbldc&colon;&colon;DayCountConvention&colon;&colon;e&lowbar;ACTUAL&lowbar;360)&semi; &grave; prints the following on standard output&colon; &grave; ACTUAL&lowbar;360 &grave; Note that specifying a `convention` that does not match any of the enumerators will result in an unspecified string representation being returned that is distinct from the values returned for any valid enumerator&period;
|===



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