v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
functional.h
Go to the documentation of this file.
1// Copyright 2024 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef V8_BASE_TEMPLATE_META_PROGRAMMING_FUNCTIONAL_H_
6#define V8_BASE_TEMPLATE_META_PROGRAMMING_FUNCTIONAL_H_
7
9
10namespace v8::base::tmp {
11
12template <typename T>
13struct lazy_false : std::false_type {};
14template <typename T>
15struct lazy_true : std::true_type {};
16
17// call_parameters returns a list of parameter types of the given (member)
18// function pointer.
19template <typename>
21template <typename R, typename... Args>
22struct call_parameters<R (*)(Args...)> {
23 using type = list<Args...>;
24};
25template <typename R, typename O, typename... Args>
26struct call_parameters<R (O::*)(Args...)> {
27 using type = list<Args...>;
28};
29template <typename T>
31
32} // namespace v8::base::tmp
33
34#endif // V8_BASE_TEMPLATE_META_PROGRAMMING_FUNCTIONAL_H_
typename call_parameters< T >::type call_parameters_t
Definition functional.h:30