chore: replace absl::optional<T> with std::optional<T> (#40928)
* chore: replace absl::optional<T> with std::optional<T> * IWYU
This commit is contained in:
parent
fac964ac0d
commit
892c9d78a3
129 changed files with 419 additions and 397 deletions
|
@ -16,12 +16,12 @@
|
|||
// in the gin_helper namespace.
|
||||
namespace gin {
|
||||
|
||||
// Support absl::optional as an argument.
|
||||
// Support std::optional as an argument.
|
||||
template <typename T>
|
||||
bool GetNextArgument(Arguments* args,
|
||||
const InvokerOptions& invoker_options,
|
||||
bool is_first,
|
||||
absl::optional<T>* result) {
|
||||
std::optional<T>* result) {
|
||||
T converted;
|
||||
// Use gin::Arguments::GetNext which always advances |next| counter.
|
||||
if (args->GetNext(&converted))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue