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 <adobe/config.hpp>
14
15#include <type_traits>
16
17/**************************************************************************************************/
18
19namespace adobe {
20
21#if ASL_CPP_VERSION_LESS_THAN(17)
22
23template <class F, class... Args>
24using invoke_result_t = std::result_of_t<F(Args...)>;
25
26#else
27
28template <class F, class... Args>
29using invoke_result_t = std::invoke_result_t<F, Args...>;
30
31#endif
32
33} // namespace adobe
34
35/**************************************************************************************************/
36
37#endif // include guard
std::invoke_result_t< F, Args... > invoke_result_t