j
k
j a
j l
Yuval Ronen wrote:
optional<T>(y).swap(o); or make_optional(y).swap(o); which is completely different...
optional<T>(y).swap(o);
or
make_optional(y).swap(o);
which is completely different...
which can be a terrible idea (it just occurred to me), depends on how optional's swap is implemented, and if/how T can be efficiently swaped...
Back to the thread
Back to the list