]> git.ipfire.org Git - thirdparty/gcc.git/blob - libstdc++-v3/testsuite/25_algorithms/stable_partition/requirements/explicit_instantiation/pod.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 25_algorithms / stable_partition / requirements / explicit_instantiation / pod.cc
1 // { dg-options "-Wno-deprecated-declarations" }
2 // { dg-do compile }
3
4 // std::stable_partition is not freestanding.
5 // { dg-require-effective-target hosted }
6
7 // 2007-09-20 Benjamin Kosnik <bkoz@redhat.com>
8
9 // Copyright (C) 2007-2023 Free Software Foundation, Inc.
10 //
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)
15 // any later version.
16
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.
21
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/>.
25
26
27 #include <algorithm>
28 #include <testsuite_character.h>
29
30 namespace std
31 {
32 using __gnu_test::pod_int;
33
34 typedef pod_int value_type;
35 typedef value_type* iterator_type;
36 typedef std::pointer_to_unary_function<value_type, bool> predicate_type;
37
38 template iterator_type stable_partition(iterator_type, iterator_type, predicate_type);
39 }