cxx_have_swap_in_stl_algorithm.m4

来自「FreeFEM is an implementation of the GFEM」· M4 代码 · 共 48 行

M4
48
字号
dnl ----------------------------------------------------------------------dnldnl CXX_HAVE_SWAP_IN_STL_ALGORITHMdnl ---------------------------------------------dnldnl If the C++ compiler have swap in stldnl                         define `HAVE_SWAP_IN_STL_ALGOBASE'.dnldnl This program is free software; you can redistribute it and/or modifydnl  it under the terms of the GNU General Public License as published bydnl  the Free Software Foundation; either version 2 of the License, ordnl  (at your option) any later version.dnl  dnl  This program is distributed in the hope that it will be useful,dnl  but WITHOUT ANY WARRANTY; without even the implied warranty ofdnl  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See thednl  GNU General Public License for more details.dnldnl  You should have received a copy of the GNU General Public Licensednl  along with this program; if not, write to the Free Softwarednl  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.AC_DEFUN(CXX_HAVE_SWAP_IN_STL_ALGOBASE,[AC_REQUIRE([AC_PROG_CXX])AC_MSG_CHECKING(whether the C++ compiler (${CXX}) has swap in stl algorithm)AC_CACHE_VAL(ddec_cv_have_swap_in_stl_algobase,[AC_LANG_SAVEAC_LANG_CPLUSPLUSAC_TRY_COMPILE([#include <algobase.h>int main(){    double a=1,b=2;    swap(a,b);}],[return 1;],ddec_cv_have_swap_in_stl_algobase=yes,ddec_cv_have_swap_in_stl_algobase=no)AC_LANG_RESTORE])AC_MSG_RESULT($ddec_cv_have_swap_in_stl_algobase)if test "$ddec_cv_have_swap_in_stl_algobase" = yes; thenAC_DEFINE(HAVE_SWAP_IN_STL_ALGOBASE)fi])dnl

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?