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

[algorithms.results] Chapter defines class templates not in header <algorithm> synopsis chapter #3946

Closed
amurzeau opened this issue Apr 18, 2020 · 1 comment

Comments

@amurzeau
Copy link

Each clause contains one or several "Headers <....> synopsis" chapters that define what is defined in the given header.

But for the algorithms library, chapter 25.5 Algorithm result types [algorithms.results] defines additional classes not in the 25.4 Header <algorithm> synopsis [algorithm.syn] chapter.

Affected classes are (non exhaustive list, based on latest draft release N4861):

namespace std::ranges {
    template<class I, class F> struct in_fun_result;
    template<class I1, class I2> struct in_in_result;
    template<class I, class O> struct in_out_result;
    template<class I1, class I2, class O> struct in_in_out_result;
    template<class I, class O1, class O2> struct in_out_out_result;
    template<class T> struct min_max_result;
    template<class I> struct in_found_result;
}

I think that, for coherency with other library headers, these chapters ([algorithms.results] and [algorithm.syn]) should be somehow merged together.

@jensmaurer
Copy link
Member

These class templates are mentioned in [algorithm.syn] nowadays, right at the top.

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

2 participants