diff options
author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-01-14 01:21:51 +0000 |
---|---|---|
committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-01-14 01:21:51 +0000 |
commit | eed596a33c527d9923ddd6cade1f11e645621e9d (patch) | |
tree | 8bf9761158c981a039a27f0283dd87949cc696bb /libstdc++-v3/include/bits/algorithmfwd.h | |
parent | 5bc6fdce2cd7e7c155df1d0af73ad80cdae3f459 (diff) | |
download | gcc-eed596a33c527d9923ddd6cade1f11e645621e9d.tar.gz |
2011-01-13 Paolo Carlini <paolo.carlini@oracle.com>
* testsuite/25_algorithms/is_permutation/check_type.cc: New.
* testsuite/25_algorithms/is_permutation/requirements/
explicit_instantiation/2.cc: Likewise.
* testsuite/25_algorithms/is_permutation/requirements/
explicit_instantiation/pod.cc: Likewise.
* testsuite/25_algorithms/is_permutation/1.cc: Likewise.
2011-01-13 John Lakos <jlakos@bloomberg.net>
Pablo Halpern <phalpern@halpernwightsoftware.com>
Paolo Carlini <paolo.carlini@oracle.com>
* include/bits/stl_algo.h (is_permutation): Add, per N3068.
* include/bits/algorithmfwd.h: Add.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168773 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/bits/algorithmfwd.h')
-rw-r--r-- | libstdc++-v3/include/bits/algorithmfwd.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/libstdc++-v3/include/bits/algorithmfwd.h b/libstdc++-v3/include/bits/algorithmfwd.h index 9fad4cea47c..fd5dbb211e1 100644 --- a/libstdc++-v3/include/bits/algorithmfwd.h +++ b/libstdc++-v3/include/bits/algorithmfwd.h @@ -1,6 +1,6 @@ // <algorithm> declarations -*- C++ -*- -// Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc. +// Copyright (C) 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -301,6 +301,15 @@ _GLIBCXX_BEGIN_NAMESPACE(std) bool is_partitioned(_IIter, _IIter, _Predicate); + template<typename _FIter1, typename _FIter2> + bool + is_permutation(_FIter1, _FIter1, _FIter2); + + template<typename _FIter1, typename _FIter2, + typename _BinaryPredicate> + bool + is_permutation(_FIter1, _FIter1, _FIter2, _BinaryPredicate); + template<typename _FIter> bool is_sorted(_FIter, _FIter); |