Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
binary_function.h60 linesDownload Raw Back to __functional
1// -*- C++ -*-2//===----------------------------------------------------------------------===//3//4// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.5// See https://llvm.org/LICENSE.txt for license information.6// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception7//8//===----------------------------------------------------------------------===//9 10#ifndef _LIBCUDACXX___FUNCTIONAL_BINARY_FUNCTION_H11#define _LIBCUDACXX___FUNCTIONAL_BINARY_FUNCTION_H12 13#ifndef __cuda_std__14#include <__config>15#endif // __cuda_std__16 17#if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC)18#  pragma GCC system_header19#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG)20#  pragma clang system_header21#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_MSVC)22#  pragma system_header23#endif // no system header24 25_LIBCUDACXX_BEGIN_NAMESPACE_STD26 27#if _LIBCUDACXX_STD_VER <= 14 || defined(_LIBCUDACXX_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION)28 29template <class _Arg1, class _Arg2, class _Result>30struct _LIBCUDACXX_TEMPLATE_VIS _LIBCUDACXX_DEPRECATED_IN_CXX11 binary_function31{32    typedef _Arg1   first_argument_type;33    typedef _Arg2   second_argument_type;34    typedef _Result result_type;35};36 37#endif // _LIBCUDACXX_STD_VER <= 14 || defined(_LIBCUDACXX_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION)38 39template <class _Arg1, class _Arg2, class _Result> struct __binary_function_keep_layout_base {40#if _LIBCUDACXX_STD_VER <= 17 || defined(_LIBCUDACXX_ENABLE_CXX20_REMOVED_BINDER_TYPEDEFS)41  using first_argument_type _LIBCUDACXX_DEPRECATED_IN_CXX17 = _Arg1;42  using second_argument_type _LIBCUDACXX_DEPRECATED_IN_CXX17 = _Arg2;43  using result_type _LIBCUDACXX_DEPRECATED_IN_CXX17 = _Result;44#endif45};46 47#if _LIBCUDACXX_STD_VER <= 14 || defined(_LIBCUDACXX_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION)48_CCCL_DIAG_SUPPRESS_DEPRECATED_PUSH49template <class _Arg1, class _Arg2, class _Result>50using __binary_function = binary_function<_Arg1, _Arg2, _Result>;51_CCCL_DIAG_SUPPRESS_DEPRECATED_POP52#else53template <class _Arg1, class _Arg2, class _Result>54using __binary_function = __binary_function_keep_layout_base<_Arg1, _Arg2, _Result>;55#endif56 57_LIBCUDACXX_END_NAMESPACE_STD58 59#endif // _LIBCUDACXX___FUNCTIONAL_BINARY_FUNCTION_H60 
codekingpro/portable-devtools · Team Ai