[#BloombergLP-bsls-TimeInterval-isInDurationRange]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::xref:BloombergLP/bsls/TimeInterval.adoc[TimeInterval]::isInDurationRange
:relfileprefix: ../../../
:mrdocs:

Return whether this interval fits in `DURATION&lowbar;TYPE`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class DURATION&lowbar;TYPE&gt;
bool
isInDurationRange() const
requires TimeInterval&lowbar;IsDuration&lt;DURATION&lowbar;TYPE&gt;&colon;&colon;value;
----

== Description

Return `true` if the value of this time interval is within the valid range of the parameterized `DURATION&lowbar;TYPE`, and `false` otherwise&period; Note that this function does not participate in overload resolution unless `DURATION&lowbar;TYPE` is an instantiation of `std&colon;&colon;chrono&colon;&colon;duration`&period;

== Return Value

`true` if this interval is within the valid range of `DURATION&lowbar;TYPE`&semi; `false` otherwise


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