// This file is part of Desktop App Toolkit, // a set of libraries for developing nice desktop applications. // // For license and copyright information please follow this link: // https://github.com/desktop-app/legal/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) { details::callable_invoke(method, value); return true; }); } } // namespace rpl