/* This file is part of Telegram Desktop, the official desktop application for the Telegram messaging service. For license and copyright information please follow this link: https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL */ #pragma once #include #include namespace rpl { template inline auto before_next(SideEffect &&method) { return filter([method = std::forward(method)]( const auto &value) { method(value); return true; }); } } // namespace rpl