aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/overloaded.h
diff options
context:
space:
mode:
authoreeight <eeight@yandex-team.ru>2022-02-10 16:46:19 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:19 +0300
commitbd085aee9b4f7a0bee302ce687964ffb7098f986 (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/generic/overloaded.h
parent475c0a46f28166e83fd263badc7546377cddcabe (diff)
downloadydb-bd085aee9b4f7a0bee302ce687964ffb7098f986.tar.gz
Restoring authorship annotation for <eeight@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/generic/overloaded.h')
-rw-r--r--util/generic/overloaded.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/generic/overloaded.h b/util/generic/overloaded.h
index c531f74fd8..96a97e44bc 100644
--- a/util/generic/overloaded.h
+++ b/util/generic/overloaded.h
@@ -3,9 +3,9 @@
/**
* Construct an ad-hoc object with an overloaded `operator()`.
*
- * Typically used with lambdas to construct type-matching visitors for e.g. std::variant:
+ * Typically used with lambdas to construct type-matching visitors for e.g. std::variant:
* ```
- * std::variant<int, void*, TString> var;
+ * std::variant<int, void*, TString> var;
* Visit(TOverloaded{
* [](int val) { Cerr << "int: " << val; },
* [](void* val) { Cerr << "ptr: " << val; },
@@ -22,7 +22,7 @@
* For example, the following code will compile and run by casting all values to
* double:
* ```
- * std::variant<int, double, char> var;
+ * std::variant<int, double, char> var;
* Visit(TOverloaded{
* [](double val) { Cerr << "dbl: " << val; },
* }, var);
@@ -31,7 +31,7 @@
* If cases may be ambigous or specific type-matching logic is required,
* a verbose `if constexpr`-based version would be preferred:
* ```
- * std::variant<int, double, char> var;
+ * std::variant<int, double, char> var;
* Visit([](auto&& val) {
* using T = std::decay_t<decltype(val)>;
* if constexpr (std::is_same_v<T, int>) {