[#BloombergLP-bslstl-IteratorUtil_LegacyInsertDistance-03-insertDistance] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/IteratorUtil_LegacyInsertDistance-03.adoc[IteratorUtil_LegacyInsertDistance]::insertDistance :relfileprefix: ../../../ :mrdocs: Return the number of elements in the range `[first, last)]` if the (template parameter) type `t_SENTINEL` is convertible to the (template parameter) type `t_INPUT_ITERATOR` and `t_INPUT_ITERATOR` has a forward iterator category; otherwise return 0. == Synopsis Declared in `<bslstl_iteratorutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static bsl::iterator_traits<t_INPUT_ITERATOR>::difference_type insertDistance( t_INPUT_ITERATOR const& first, t_SENTINEL const& last); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#