$include_dir="/home/hyper-archives/boost/include";
include("$include_dir/msg-header.inc")
?>
- Next message: Peter Dimov: "Re: delayed_forward: good, bad, ugly?"
- Previous message: Marshall Clow: "Re: delayed_forward: good, bad, ugly?"
- In reply to: Marshall Clow: "Re: delayed_forward: good, bad, ugly?"
- Next in thread: Peter Dimov: "Re: delayed_forward: good, bad, ugly?"
- Reply: Peter Dimov: "Re: delayed_forward: good, bad, ugly?"
> See `std::map::try_emplace(k, argsâ¦)`.
>
> https://en.cppreference.com/w/cpp/container/map/try_emplace
>
> Notes:
> Unlike insert or emplace, these functions do not move from rvalue arguments if the insertion does not happen.
Yes, however at the callsite you can clearly see the different
semantics: "try_"
That's much harder for a constructor. Although a well-named factory
method might be a solution if this semantic is useful.
- Next message: Peter Dimov: "Re: delayed_forward: good, bad, ugly?"
- Previous message: Marshall Clow: "Re: delayed_forward: good, bad, ugly?"
- In reply to: Marshall Clow: "Re: delayed_forward: good, bad, ugly?"
- Next in thread: Peter Dimov: "Re: delayed_forward: good, bad, ugly?"
- Reply: Peter Dimov: "Re: delayed_forward: good, bad, ugly?"
$include_dir="/home/hyper-archives/boost/include";
include("$include_dir/msg-footer.inc");
?>