Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use basic_view<T*> for the underlying range of contiguous iterators #30

Open
tahonermann opened this issue Jan 26, 2017 · 0 comments
Open
Assignees

Comments

@tahonermann
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant