chromium/v8/src/base/template-meta-programming/functional.h

// Copyright 2024 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef V8_BASE_TEMPLATE_META_PROGRAMMING_FUNCTIONAL_H_
#define V8_BASE_TEMPLATE_META_PROGRAMMING_FUNCTIONAL_H_

#include "src/base/template-meta-programming/list.h"

namespace v8::base::tmp {

template <typename T>
struct lazy_false : std::false_type {};
template <typename T>
struct lazy_true : std::true_type {};

// call_parameters returns a list of parameter types of the given (member)
// function pointer.
template <typename>
struct call_parameters;
call_parameters<R (*)(Args...)>;
call_parameters<R (O::*)(Args...)>;
call_parameters_t;

}  // namespace v8::base::tmp

#endif  // V8_BASE_TEMPLATE_META_PROGRAMMING_FUNCTIONAL_H_