This enables using the arrow operator to access members of the contained item.
Located<std::string> X; const char* CStr = X->c_str();
This is inline with how classes like Optional handle the arrow operator.
Differential D90682
[clangd][NFC] Make Located::operator->() use pointer sematics njames93 on Nov 3 2020, 6:17 AM. Authored by
Details This enables using the arrow operator to access members of the contained item. Located<std::string> X; const char* CStr = X->c_str(); This is inline with how classes like Optional handle the arrow operator.
Diff Detail
|