On 7/24/2021 10:22 AM, Ivan Matek via Boost wrote:
Hi, I would like to add is_clamped (that tests if the value is clamped, similar how we have std::is_sorted, std::sort).
What would be the proper procedure?
I have never committed to boost, so I have no access to any repository, no "contacts", so I have no idea if small proposals like this require just approval from owner or it needs broader discussion(for example in some cases it would be nice fix for missing chain comparison https://www.geeksforgeeks.org/chaining-comparison-operators-python/ in core language, but then is_clamped name is not that nice, is_between might be nicer,...).
Also I am not sure if this is the best place to ask for directions and do discussions, if you have some slack channel or forum you prefer please let me know.
You have posted to the right place. You can also, if you like, open https://github.com/boostorg/algorithm and create an issue or program a pull request if you like. With a pull request you do not have to have write access to a repository in order to create a programming change.
There was a proposal http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1440r0.htmlfor std::, but it is not in C++20. I have no relation to that proposal.