-
Kenton Varda authored
I have this pattern: Maybe<Own<T>> foo; // ... foo = heap<T>(); KJ_ASSERT_NONNULL(foo)->doSomething(); The assertion feels non-type-safe. Now you can do: auto& ref = foo.emplace(heap<T>()); ref.doSomething();
2ae7ca9b
Name |
Last commit
|
Last update |
---|---|---|
c++ | Loading commit data... | |
doc | ||
highlighting | ||
security-advisories | ||
.gitignore | ||
.travis.yml | ||
CMakeLists.txt | ||
CONTRIBUTORS | ||
LICENSE | ||
README.md | ||
RELEASE-PROCESS.md | ||
appveyor.yml | ||
mega-test-kenton-home.cfg | ||
mega-test-kenton-work.cfg | ||
mega-test-quick.cfg | ||
mega-test.py | ||
release.sh | ||
style-guide.md | ||
super-test.sh |