BloombergLP::bslstl::IteratorUtil_LegacyInsertDistance::insertDistance

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>

static
bsl::iterator_traits<t_INPUT_ITERATOR>::difference_type
insertDistance(
    t_INPUT_ITERATOR const& first,
    t_SENTINEL const& last);