r180672 - Documentation: add an idea for a cpp14-migrate transform for N3421
Dmitri Gribenko
gribozavr at gmail.com
Sat Apr 27 06:41:02 PDT 2013
Author: gribozavr
Date: Sat Apr 27 08:41:02 2013
New Revision: 180672
URL: http://llvm.org/viewvc/llvm-project?rev=180672&view=rev
Log:
Documentation: add an idea for a cpp14-migrate transform for N3421
Modified:
cfe/trunk/docs/ClangTools.rst
Modified: cfe/trunk/docs/ClangTools.rst
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/ClangTools.rst?rev=180672&r1=180671&r2=180672&view=diff
==============================================================================
--- cfe/trunk/docs/ClangTools.rst (original)
+++ cfe/trunk/docs/ClangTools.rst Sat Apr 27 08:41:02 2013
@@ -175,3 +175,17 @@ can be incorporated into the ``auto`` tr
that don't want to use ``auto`` because they are afraid that they might lose
control over their code.
+* C++14: less verbose operator function objects (`N3421
+ <http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3421.htm>`_).
+ For example:
+
+ .. code-block:: c++
+
+ sort(v.begin(), v.end(), greater<ValueType>());
+
+ should be rewritten to:
+
+ .. code-block:: c++
+
+ sort(v.begin(), v.end(), greater<>());
+
More information about the cfe-commits
mailing list