r240723 - in /trunk/libstdc++-v3: ChangeLog doc...

redi@gcc.gnu.org redi@gcc.gnu.org
Mon Oct 3 17:01:00 GMT 2016


Author: redi
Date: Mon Oct  3 17:01:10 2016
New Revision: 240723

URL: https://gcc.gnu.org/viewcvs?rev=240723&root=gcc&view=rev
Log:
Define std::gcd and std::lcm for C++17

	* doc/xml/manual/status_cxx2017.xml: Update gcd/lcm status.
	* doc/html/*: Regenerate.
	* include/experimental/numeric (__abs): Move to <numeric>.
	(gcd, lcm): Use __detail::gcd and __detail::lcm.
	* include/std/numeric (__detail::__abs_integral)
	(__detail::__gcd, __detail::__lcm): Define.
	(gcd, lcm): Define for C++17.
	* testsuite/26_numerics/gcd/1.cc: New test.
	* testsuite/26_numerics/lcm/1.cc: New test.
	* testsuite/experimental/numeric/gcd.cc: Swap contents with ...
	* testsuite/experimental/numeric/lcd.cc: ... this.

Added:
    trunk/libstdc++-v3/testsuite/26_numerics/gcd/
    trunk/libstdc++-v3/testsuite/26_numerics/gcd/1.cc
      - copied, changed from r240714, trunk/libstdc++-v3/testsuite/experimental/numeric/lcm.cc
    trunk/libstdc++-v3/testsuite/26_numerics/lcm/
    trunk/libstdc++-v3/testsuite/26_numerics/lcm/1.cc
      - copied, changed from r240714, trunk/libstdc++-v3/testsuite/experimental/numeric/gcd.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/doc/html/manual/status.html
    trunk/libstdc++-v3/doc/xml/manual/status_cxx2017.xml
    trunk/libstdc++-v3/include/experimental/numeric
    trunk/libstdc++-v3/include/std/numeric
    trunk/libstdc++-v3/testsuite/experimental/numeric/gcd.cc
    trunk/libstdc++-v3/testsuite/experimental/numeric/lcm.cc



More information about the Libstdc++-cvs mailing list