Add folly::lazy
authorJordan DeLong <jdelong@fb.com>
Sun, 19 May 2013 21:47:39 +0000 (14:47 -0700)
committerSara Golemon <sgolemon@fb.com>
Thu, 23 May 2013 21:33:23 +0000 (14:33 -0700)
commit12c8603da89f7ea8f2fbd0a414125aa8117ac97b
treeef7d3a6dd1ca38dae54f7867ce8159524b64b3af
parentdc64a0e38329a177c8ea910f49bb0418c47dafd4
Add folly::lazy

Summary:
A thin wrapper around Optional for terse creation of
lazily-initialized values.

Test Plan: New tests, and a use case in hphp.

Reviewed By: tjackson@fb.com

FB internal diff: D817906
folly/Lazy.h [new file with mode: 0644]
folly/test/LazyTest.cpp [new file with mode: 0644]