[#BloombergLP-bslstl-IteratorUtil_LegacyInsertDistance-0c]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/IteratorUtil_LegacyInsertDistance-03.adoc[IteratorUtil&lowbar;LegacyInsertDistance]&lt;t&lowbar;INPUT&lowbar;ITERATOR, t&lowbar;SENTINEL, false&gt;
:relfileprefix: ../../
:mrdocs:

This partial specialization handles the case where the sentinel type is not convertible to the iterator type and thus we do not support distance calculation&period; Note that this choice primarily applies on legacy platforms or when iterators do not properly model the modern iterator concepts&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;
struct xref:BloombergLP/bslstl/IteratorUtil_LegacyInsertDistance-03.adoc[IteratorUtil&lowbar;LegacyInsertDistance]&lt;t&lowbar;INPUT&lowbar;ITERATOR, t&lowbar;SENTINEL, false&gt;;
----

== Static Member Functions

[cols="1"]
|===
| Name
| xref:BloombergLP/bslstl/IteratorUtil_LegacyInsertDistance-0c/canCalculate.adoc[`canCalculate`] 
| xref:BloombergLP/bslstl/IteratorUtil_LegacyInsertDistance-0c/insertDistance.adoc[`insertDistance`] 
|===



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