Lely core libraries 2.3.4
functional.hpp
Go to the documentation of this file.
1
22#ifndef LELY_LIBC_FUNCTIONAL_HPP_
23#define LELY_LIBC_FUNCTIONAL_HPP_
24
25#include <lely/features.h>
26#if __cplusplus <= 201703L
28#endif
29
30#include <functional>
31#include <utility>
32
33namespace lely {
34namespace compat {
35
36#if __cplusplus >= 201703L
37
38using ::std::invoke;
39
40#else // __cplusplus < 201703L
41
46template <class F, class... Args>
47inline invoke_result_t<F, Args...>
48invoke(F&& f, Args&&... args) {
49 return detail::invoke(::std::forward<F>(f), ::std::forward<Args>(args)...);
50}
51
52#endif // __cplusplus < 201703L
53
54} // namespace compat
55} // namespace lely
56
57#endif // !LELY_LIBC_FUNCTIONAL_HPP_
A CANopen value.
Definition val.hpp:42
This header file is part of the Lely libraries; it contains the compiler feature definitions.
invoke_result_t< F, Args... > invoke(F &&f, Args &&... args)
Invokes f with the arguments args... as if by INVOKE(forward<F>(f), forward<Args>(args)....
This header file is part of the compatibility library; it includes <type_traits> and defines any miss...