BloombergLP::bslstl::IteratorUtil_LegacyInsertDistance<t_INPUT_ITERATOR, t_SENTINEL, false>

Partial specialization that does not support insert-distance calculation.

Synopsis

Declared in <bslstl_iteratorutil.h>

template<
    class t_INPUT_ITERATOR,
    class t_SENTINEL>
struct IteratorUtil_LegacyInsertDistance<t_INPUT_ITERATOR, t_SENTINEL, false>;

Description

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. Note that this choice primarily applies on legacy platforms or when iterators do not properly model the modern iterator concepts.

Static Member Functions

NameDescription
canCalculate Return false because distance calculation is not supported.
insertDistance Return 0 because distance calculation is not supported.