From c524232f734de875d69e2f190f01a6c976024368 Mon Sep 17 00:00:00 2001 From: Gard Spreemann Date: Thu, 14 Jun 2018 20:39:01 +0200 Subject: GUDHI 2.2.0 as released by upstream in a tarball. --- include/gudhi_patches/CGAL/argument_swaps.h | 88 ----------------------------- 1 file changed, 88 deletions(-) delete mode 100644 include/gudhi_patches/CGAL/argument_swaps.h (limited to 'include/gudhi_patches/CGAL/argument_swaps.h') diff --git a/include/gudhi_patches/CGAL/argument_swaps.h b/include/gudhi_patches/CGAL/argument_swaps.h deleted file mode 100644 index aa16f29b..00000000 --- a/include/gudhi_patches/CGAL/argument_swaps.h +++ /dev/null @@ -1,88 +0,0 @@ -// Copyright (c) 2014 -// INRIA Saclay-Ile de France (France) -// -// This file is part of CGAL (www.cgal.org); you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public License as -// published by the Free Software Foundation; either version 3 of the License, -// or (at your option) any later version. -// -// Licensees holding a valid commercial license may use this file in -// accordance with the commercial license agreement provided with the software. -// -// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE -// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. -// -// $URL$ -// $Id$ -// -// Author(s) : Marc Glisse - -#ifndef CGAL_ARGUMENT_SWAPS_H -#define CGAL_ARGUMENT_SWAPS_H - -#include -#include - -#ifndef CGAL_CXX11 -#include -#include -#endif - -namespace CGAL { - -#ifdef CGAL_CXX11 - -namespace internal { - -template struct Apply_to_last_then_rest_; - -template -struct Apply_to_last_then_rest_ { - typedef typename Apply_to_last_then_rest_::result_type result_type; - inline result_type operator()(F&&f,T&&t,U&&...u)const{ - return Apply_to_last_then_rest_()( - std::forward(f), - std::forward(u)..., - std::forward(t)); - } -}; - -template -struct Apply_to_last_then_rest_<0,F,T,U...> { - typedef decltype(std::declval()(std::declval(), std::declval()...)) result_type; - inline result_type operator()(F&&f,T&&t,U&&...u)const{ - return std::forward(f)(std::forward(t), std::forward(u)...); - } -}; - -} // namespace internal - - -struct Apply_to_last_then_rest { - template inline - typename internal::Apply_to_last_then_rest_::result_type - operator()(F&&f,T&&t,U&&...u)const{ - return internal::Apply_to_last_then_rest_()( - std::forward(f), - std::forward(t), - std::forward(u)...); - } -}; - -#else // CGAL_CXX11 - -struct Apply_to_last_then_rest { -#define CGAL_CODE(Z,N,_) template \ - typename boost::result_of::type \ - operator()(F const&f, BOOST_PP_ENUM_BINARY_PARAMS(N,T,const&t), T const&t) const { \ - return f(t,BOOST_PP_ENUM_PARAMS(N,t)); \ - } - BOOST_PP_REPEAT_FROM_TO(1,11,CGAL_CODE,_) -#undef CGAL_CODE -}; - -#endif // CGAL_CXX11 - -} // namespace CGAL - -#endif // CGAL_ARGUMENT_SWAPS_H -- cgit v1.2.3