summaryrefslogtreecommitdiffstats
path: root/util/generic/lazy_value.h
diff options
context:
space:
mode:
authorAnton Samokhvalov <[email protected]>2022-02-10 16:45:17 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:45:17 +0300
commitd3a398281c6fd1d3672036cb2d63f842d2cb28c5 (patch)
treedd4bd3ca0f36b817e96812825ffaf10d645803f2 /util/generic/lazy_value.h
parent72cb13b4aff9bc9cf22e49251bc8fd143f82538f (diff)
Restoring authorship annotation for Anton Samokhvalov <[email protected]>. Commit 2 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 00751806e26..3c720f76b5a 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)};
}