Chromium Code Reviews
DescriptionAllow Vector<Optional> and Optional::get()
Vector<Optional> is useful to manage variable number of optional objects.
This CL allows Optional class to use placement 'new' so that we can use
Vector<Optional>.
Optional::get() is useful to get the pointer (nullptr if the object is not
emplaced) to the optional object. It's a short form of equivalent but more
verbose form "optionalObject ? &*optionalObject : nullptr".
Committed: https://crrev.com/684b685bf914256f43065bebee80038e53ac5c52
Cr-Commit-Position: refs/heads/master@{#385397}
Patch Set 1 #
Dependent Patchsets: Messages
Total messages: 16 (7 generated)
|
|||||||||||||||||||