aboutsummaryrefslogtreecommitdiffstats
path: root/util/stream/labeled.h
diff options
context:
space:
mode:
authorAlexander Fokin <apfokin@gmail.com>2022-02-10 16:45:38 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:38 +0300
commit863a59a65247c24db7cb06789bc5cf79d04da32f (patch)
tree139dc000c8cd4a40f5659e421b7c75135d080307 /util/stream/labeled.h
parentf64e95a9eb9ab03240599eb9581c5a9102426a96 (diff)
downloadydb-863a59a65247c24db7cb06789bc5cf79d04da32f.tar.gz
Restoring authorship annotation for Alexander Fokin <apfokin@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'util/stream/labeled.h')
-rw-r--r--util/stream/labeled.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/util/stream/labeled.h b/util/stream/labeled.h
index 2cc539d241..a4edffd715 100644
--- a/util/stream/labeled.h
+++ b/util/stream/labeled.h
@@ -2,18 +2,18 @@
#include <util/generic/va_args.h>
-/**
- * Generates an output sequence for the provided expressions that is formatted
- * as a labeled comma-separated list.
- *
- * Example usage:
- * @code
- * int a = 1, b = 2, c = 3;
- * stream << LabeledOutput(a, b, c, a + b + c);
- * // Outputs "a = 1, b = 2, c = 3, a + b + c = 6"
- * @endcode
- */
+/**
+ * Generates an output sequence for the provided expressions that is formatted
+ * as a labeled comma-separated list.
+ *
+ * Example usage:
+ * @code
+ * int a = 1, b = 2, c = 3;
+ * stream << LabeledOutput(a, b, c, a + b + c);
+ * // Outputs "a = 1, b = 2, c = 3, a + b + c = 6"
+ * @endcode
+ */
#define LabeledOutput(...) "" Y_PASS_VA_ARGS(Y_MAP_ARGS_WITH_LAST(__LABELED_OUTPUT_NONLAST__, __LABELED_OUTPUT_IMPL__, __VA_ARGS__))
-
+
#define __LABELED_OUTPUT_IMPL__(x) << #x " = " << (x)
#define __LABELED_OUTPUT_NONLAST__(x) __LABELED_OUTPUT_IMPL__(x) << ", "