Remove unused format::lambda.

This commit is contained in:
levlam 2024-01-20 12:05:49 +03:00
parent 09c6bad8bd
commit 1147dfc6fb

View File

@ -305,22 +305,6 @@ auto concat(const ArgsT &...args) {
return Concat<decltype(std::tie(args...))>{std::tie(args...)};
}
template <class F>
struct Lambda {
const F &f;
};
template <class F>
StringBuilder &operator<<(StringBuilder &sb, const Lambda<F> &f) {
f.f(sb);
return sb;
}
template <class LambdaT>
Lambda<LambdaT> lambda(const LambdaT &lambda) {
return Lambda<LambdaT>{lambda};
}
} // namespace format
using format::tag;