summaryrefslogtreecommitdiffstats
path: root/util/generic/lazy_value.h
diff options
context:
space:
mode:
authorAnton Samokhvalov <[email protected]>2022-02-10 16:45:15 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:45:15 +0300
commit72cb13b4aff9bc9cf22e49251bc8fd143f82538f (patch)
treeda2c34829458c7d4e74bdfbdf85dff449e9e7fb8 /util/generic/lazy_value.h
parent778e51ba091dc39e7b7fcab2b9cf4dbedfb6f2b5 (diff)
Restoring authorship annotation for Anton Samokhvalov <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'util/generic/lazy_value.h')
-rw-r--r--util/generic/lazy_value.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/util/generic/lazy_value.h b/util/generic/lazy_value.h
index 3c720f76b5a..00751806e26 100644
--- a/util/generic/lazy_value.h
+++ b/util/generic/lazy_value.h
@@ -1,7 +1,7 @@
#pragma once
#include "maybe.h"
-#include "function.h"
+#include "function.h"
template <class T>
class TLazyValueBase {
@@ -51,16 +51,16 @@ private:
// we need this to get implicit construction TLazyValue from lambda
// and save default copy constructor and operator= for type TLazyValue
template <class T>
-class TLazyValue: public TLazyValueBase<T> {
+class TLazyValue: public TLazyValueBase<T> {
public:
template <typename... TArgs>
TLazyValue(TArgs&&... args)
: TLazyValueBase<T>(std::forward<TArgs>(args)...)
- {
- }
+ {
+ }
};
-template <typename F>
-TLazyValue<TFunctionResult<F>> MakeLazy(F&& f) {
- return {std::forward<F>(f)};
+template <typename F>
+TLazyValue<TFunctionResult<F>> MakeLazy(F&& f) {
+ return {std::forward<F>(f)};
}