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

sg14::span_ring: class template argument deduction #173

Open
peterlauro opened this issue Nov 6, 2020 · 0 comments
Open

sg14::span_ring: class template argument deduction #173

peterlauro opened this issue Nov 6, 2020 · 0 comments

Comments

@peterlauro
Copy link

peterlauro commented Nov 6, 2020

to benefit from C++17's class template argument deduction the deduction rules on top of span_ring should be considered:

the example of deduction rules

template <typename ContiguousIterator>
    ring_span(ContiguousIterator, ContiguousIterator)->ring_span<typename std::iterator_traits<ContiguousIterator>::value_type>;

    template <typename ContiguousIterator, typename Popper>
    ring_span(ContiguousIterator, ContiguousIterator, Popper)->ring_span<typename std::iterator_traits<ContiguousIterator>::value_type, Popper>;

    template <typename ContiguousIterator>
    ring_span(ContiguousIterator, ContiguousIterator, ContiguousIterator, std::size_t)->ring_span<typename std::iterator_traits<ContiguousIterator>::value_type>;

    template <typename ContiguousIterator, typename Popper>
    ring_span(ContiguousIterator, ContiguousIterator, ContiguousIterator, std::size_t, Popper)->ring_span<typename std::iterator_traits<ContiguousIterator>::value_type, Popper>;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant