gcc/libstdc++-v3/include
Ville Voutilainen 8dff34fe8e re PR libstdc++/60271 ([DR2369] [C++1y] std::max(initializer_list<T>) cannot use std::max_element)
2014-12-22  Ville Voutilainen  <ville.voutilainen@gmail.com>

	PR libstdc++/60271
	C++14 constexpr min, max, minmax, min_element, max_element
	and minmax_element. Also constexpr for 20.9.5-20.9.9,
	aka various library functors.
	* include/bits/c++config: Add _GLIBCXX14_CONSTEXPR.
	* include/bits/algorithmfwd.h (min, max, minmax, min_element,
	max_element): Use it.
	* include/bits/predefined_ops.h (_Iter_less_iter, __iter_less_iter,
	_Iter_comp_iter, __iter_comp_iter): Likewise.
	* include/bits/stl_algo.h (minmax, __minmax_element, minmax_element,
	min, max, __min_element, min_element, __max_element, max_element)
	Likewise.
	* include/bits/stl_algobase.h (min, max): Likewise.
	* include/bits/stl_function.h (plus, minus, multiplies, divides,
	modulus, negate, equal_to, not_equal_to, greater, less, greater_equal,
	less_equal, logical_and, logical_or, logical_not, bit_and, bit_or,
	bit_xor, bit_not, unary_negate, not1, binary_negate, not2): Likewise.
	* testsuite/20_util/function_objects/constexpr.cc: New.
	* testsuite/25_algorithms/max/constexpr.cc: Likewise.
	* testsuite/25_algorithms/max_element/constexpr.cc: Likewise.
	* testsuite/25_algorithms/min/constexpr.cc: Likewise.
	* testsuite/25_algorithms/min_element/constexpr.cc: Likewise.
	* testsuite/25_algorithms/minmax/constexpr.cc: Likewise.
	* testsuite/25_algorithms/minmax_element/constexpr.cc: Likewise.
	* testsuite/ext/profile/mutex_extensions_neg.cc: Adjust dg-error.

From-SVN: r219015
2014-12-22 16:00:16 +00:00
..
backward re PR c++/33911 (attribute deprecated vs. templates) 2014-11-17 17:09:27 -05:00
bits re PR libstdc++/60271 ([DR2369] [C++1y] std::max(initializer_list<T>) cannot use std::max_element) 2014-12-22 16:00:16 +00:00
c Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
c_compatibility Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
c_global machmode.h (int_n_data_t): New. 2014-10-14 15:44:36 -04:00
c_std machmode.h (int_n_data_t): New. 2014-10-14 15:44:36 -04:00
debug vector (std::__debug::vector<>::clear()): Do not reset guaranteed capacity. 2014-12-20 19:16:03 +00:00
decimal Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
experimental Post-Urbana updates to Library Fundamentals v1. 2014-12-13 20:44:06 +00:00
ext re PR libstdc++/64276 (would be better to use __cpp_exceptions rather than __EXCEPTIONS to determine whether exceptions are available) 2014-12-12 15:58:49 +00:00
parallel numeric.h: Do not use default arguments in function template redeclarations (definitions). 2014-11-04 03:41:16 +00:00
precompiled Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
profile Major maintenance patch of the profile mode. 2014-11-10 21:51:58 +00:00
std re PR libstdc++/54354 (TODO extended iomanip manipulators std::get_time and std::put_time (C++11, section 27.7.5)) 2014-12-22 13:45:52 +00:00
tr1 re PR libstdc++/64276 (would be better to use __cpp_exceptions rather than __EXCEPTIONS to determine whether exceptions are available) 2014-12-12 15:58:49 +00:00
tr2 any (any_cast): Combine duplicate doxygen comments. 2014-06-14 21:43:07 +01:00
Makefile.am New std::string implementation. 2014-12-19 18:16:39 +00:00
Makefile.in New std::string implementation. 2014-12-19 18:16:39 +00:00