In-place construction for Optional
authorYedidya Feldblum <yfeldblum@fb.com>
Sun, 2 Jul 2017 17:22:33 +0000 (10:22 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Sun, 2 Jul 2017 17:40:23 +0000 (10:40 -0700)
commita695397e013de4596d05ca7fc1df2546ad639e64
tree56b6ee32d1a292ad5ba4ec2e9af0e5e5242f7926
parent8f8a5e472c5de694bde9cbfe508a782027591fcf
In-place construction for Optional

Summary:
[Folly] In-place construction for `Optional`.

Using `in_place` as the first argument. Avoid move operations.

Reviewed By: Orvid, ot

Differential Revision: D5362563

fbshipit-source-id: 771db2556842d5dec35d1bf2ad6c23358a417d54
folly/Optional.h
folly/test/OptionalTest.cpp