NanoRange
NanoRange copied to clipboard
Add [[nodiscard]] to algorithms and views
All views are now marked with [[nodiscard]], although some things may have been missed.
For algorithms, [[nodiscard]] wasn't added to:
- In-place, modifying algorithms - the caller often knows what to expect and the return value isn't that useful.
- Algorithms that take an output iterator - that output iterator might be
ostream_iterator<T>(cout). next_permutationandprev_permutation- thein_found_result::foundseems useful, but I wasn't sure if it is useful enough.