make_text_view() overloads that accept ranges or iterator/sentinel pairs over a code unit type of Treturn a basic_text_view specialization that uses a view type of basic_view<iterator>. Template instantiations could be reduced and type interoperability potentially improved by using a view type of basic_view<T*> for contiguous ranges and iterators.
At present, this requires either hard-coding for the contiguous containers the standard provides, or using cmcstl2/range-v3 extensions; the standard doesn't yet provide support for compile-time detection of contiguous ranges/iterators.
make_text_view()
overloads that accept ranges or iterator/sentinel pairs over a code unit type ofT
return abasic_text_view
specialization that uses a view type ofbasic_view<iterator>
. Template instantiations could be reduced and type interoperability potentially improved by using a view type ofbasic_view<T*>
for contiguous ranges and iterators.At present, this requires either hard-coding for the contiguous containers the standard provides, or using cmcstl2/range-v3 extensions; the standard doesn't yet provide support for compile-time detection of contiguous ranges/iterators.