From 3e979342aa6563cbdb54100d55959f7c8daf40cc Mon Sep 17 00:00:00 2001 From: MikeDvorskiy Date: Wed, 25 Sep 2024 16:14:31 +0200 Subject: [PATCH] [oneDPL][ranges][zip_view] + file header and guards --- include/oneapi/dpl/pstl/zip_view_impl.h | 29 +++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/include/oneapi/dpl/pstl/zip_view_impl.h b/include/oneapi/dpl/pstl/zip_view_impl.h index ae1345b434c..f975e9a2554 100644 --- a/include/oneapi/dpl/pstl/zip_view_impl.h +++ b/include/oneapi/dpl/pstl/zip_view_impl.h @@ -1,8 +1,25 @@ -#include +// -*- C++ -*- +//===----------------------------------------------------------------------===// +// +// Copyright (C) Intel Corporation +// +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +// This file incorporates work covered by the following copyright and permission +// notice: +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// +//===----------------------------------------------------------------------===// + +#ifndef _ONEDPL_ZIP_VIEW_IMPL_H +#define _ONEDPL_ZIP_VIEW_IMPL_H + +#if _ONEDPL_CPP20_RANGES_PRESENT + #include -#include #include -#include #include namespace oneapi @@ -361,4 +378,8 @@ inline constexpr zip_fn zip{}; } // namespace ranges } // namespace dpl -} // namespace oneapi \ No newline at end of file +} // namespace oneapi + +#endif //_ONEDPL_CPP20_RANGES_PRESENT + +#endif //_ONEDPL_ZIP_VIEW_IMPL_H \ No newline at end of file