Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は folly::Optional でコピー代入construct()のコードを読んでいましたが、 への呼び出しがどのようにオプションに値を割り当てるのか正確にはわかりません。具体的にconstruct()は、この表現はどのように機能しますか?
construct()
new (const_cast<void*>(ptr)) Value(std::forward<Args>(args)...);