1 // { dg-options "-Wno-deprecated-declarations" }
4 // std::stable_partition is not freestanding.
5 // { dg-require-effective-target hosted }
7 // 2007-09-20 Benjamin Kosnik <bkoz@redhat.com>
9 // Copyright (C) 2007-2023 Free Software Foundation, Inc.
11 // This file is part of the GNU ISO C++ Library. This library is free
12 // software; you can redistribute it and/or modify it under the
13 // terms of the GNU General Public License as published by the
14 // Free Software Foundation; either version 3, or (at your option)
17 // This library is distributed in the hope that it will be useful,
18 // but WITHOUT ANY WARRANTY; without even the implied warranty of
19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 // GNU General Public License for more details.
22 // You should have received a copy of the GNU General Public License along
23 // with this library; see the file COPYING3. If not see
24 // <http://www.gnu.org/licenses/>.
28 #include <testsuite_character.h>
32 using __gnu_test::pod_int
;
34 typedef pod_int value_type
;
35 typedef value_type
* iterator_type
;
36 typedef std::pointer_to_unary_function
<value_type
, bool> predicate_type
;
38 template iterator_type
stable_partition(iterator_type
, iterator_type
, predicate_type
);