Daily bit(e) of C++ | std::ranges::elements_of
Daily bit(e) of C++ #477, Distinguishing between a single element and a range of elements using C++23 std::ranges::elements_of.
An awkward problem during API design is distinguishing between inserting a single element and inserting a range of elements when the argument qualifies for both cases.
This can be solved in various ways (for example, using tagging); however, since C++23, we now have an official solution to this problem in the form of std::ranges::elements_of (used by std::generator).