chromium / subspace

A concept-centered standard library for C++20, enabling safer and more reliable products and a more modern feel for C++ code.; Also home of Subdoc the code-documentation generator.
https://suslib.cc
Apache License 2.0
89 stars 15 forks source link

sus::iter::once() should take a value not an Option<value> #329

Closed danakj closed 1 year ago

danakj commented 1 year ago

Option uses it as its iterator, as it needs to pass an Option to the iterator ctor. We should make Option its own iterator type instead (like https://doc.rust-lang.org/stable/std/option/struct.Iter.html).