/*============================================================================= Copyright (c) 2011 RiSK (sscrisk) https://github.com/sscrisk/CEL---ConstExpr-Library Copyright (c) 2011-2019 Bolero MURAKAMI https://github.com/bolero-MURAKAMI/Sprout Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ #ifndef SPROUT_FUNCTIONAL_INVOKE_HPP #define SPROUT_FUNCTIONAL_INVOKE_HPP #include #include #include #include #include namespace sprout { // // invoke // template inline SPROUT_CONSTEXPR typename sprout::invoke_result::type invoke(F&& f, Args&&... args) SPROUT_NOEXCEPT_IF((sprout::is_nothrow_invocable::value)) { return sprout::detail::invoke(SPROUT_FORWARD(F, f), SPROUT_FORWARD(Args, args)...); } } // namespace sprout #endif // #ifndef SPROUT_FUNCTIONAL_INVOKE_HPP