[#BloombergLP-bslstl-IteratorUtil-canCalculateInsertDistance]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/IteratorUtil.adoc[IteratorUtil]::canCalculateInsertDistance
:relfileprefix: ../../../
:mrdocs:

Return `true` if the calculation of `insertDistance` is supported for iterators of the specified types, `false` otherwise&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;iteratorutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class t&lowbar;INPUT&lowbar;ITERATOR,
    class t&lowbar;SENTINEL&gt;
constexpr
static
bool
canCalculateInsertDistance();
----


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