Adobe Source Libraries 2.0.0
A collection of C++ libraries.
Loading...
Searching...
No Matches
type_traits.hpp
Go to the documentation of this file.
1/*
2 Copyright 2008 Adobe Systems Incorporated
3 Distributed under the Boost Software License - Version 1.0 (see the accompanying file LICENSE
4 or a copy at https://stlab.github.io/adobe_source_libraries/licenses.html)
5*/
6
7/**************************************************************************************************/
8
9
10#ifndef ADOBE_TYPE_TRAITS_HPP
11#define ADOBE_TYPE_TRAITS_HPP
12
13#include <type_traits>
14
15/**************************************************************************************************/
16
17namespace adobe {
18
19#if __cplusplus < 201703L
20
21template <class F, class... Args>
22using invoke_result_t = std::result_of_t<F(Args...)>;
23
24#else
25
26template <class F, class... Args>
27using invoke_result_t = std::invoke_result_t<F, Args...>;
28
29#endif
30
31} // namespace adobe
32
33/**************************************************************************************************/
34
35#endif // include guard
std::result_of_t< F(Args...)> invoke_result_t