Lely core libraries 2.3.4
|
This header file is part of the utilities library; it contains a function object that can be used to store a Callable together with its arguments. More...
#include <lely/libc/functional.hpp>
#include <lely/libc/utility.hpp>
#include <tuple>
#include <utility>
Go to the source code of this file.
Data Structures | |
class | lely::util::detail::invoker< Tuple > |
Typedefs | |
template<class F , class... Args> | |
using | lely::util::invoker_t = detail::invoker<::std::tuple< typename ::std::decay< F >::type, typename ::std::decay< Args >::type... > > |
A helper alias template for the result of lely::util::make_invoker<F, Args...>(). | |
Functions | |
template<class F , class... Args> | |
invoker_t< F, Args... > | lely::util::make_invoker (F &&f, Args &&... args) |
Creates a function object containing a Callable and its arguments. | |
This header file is part of the utilities library; it contains a function object that can be used to store a Callable together with its arguments.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file invoker.hpp.
|
inline |
Creates a function object containing a Callable and its arguments.
The resulting function object is callable without any arguments.
Definition at line 83 of file invoker.hpp.