doc fixes
parent
1c0997cdc4
commit
b61426c3c4
|
@ -256,7 +256,7 @@ same as `r.front() = v; r.pop_front();` but that is not guaranteed.
|
|||
Additionally, `put(v)` is always well defined. When it fails (for example
|
||||
when there is no more space left in the container), an exception will be
|
||||
thrown. The type of exception that is thrown depends on the particular range
|
||||
and the container it backs. When the container is unbounded, it might also
|
||||
and the backing container. When the container is unbounded, it might also
|
||||
never throw. Either way, the range type is required to properly specify its
|
||||
behavior. Throwing a custom exception type is a good thing because it lets
|
||||
algorithms `put(v)` into ranges without checking and if an error happens
|
||||
|
@ -483,7 +483,7 @@ returning a lambda:
|
|||
template<typename T>
|
||||
void my_generic_algorithm(T &&arg) {
|
||||
return [arg = std::forward<T>(arg)](auto &&range) {
|
||||
return my_generic_algorithm(
|
||||
my_generic_algorithm(
|
||||
std::forward<decltype(range)>(range),
|
||||
std::forward<T>(arg)
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue