forked from OSchip/llvm-project
Documentation: add an idea for a cpp14-migrate transform for N3421
llvm-svn: 180672
This commit is contained in:
parent
72e122607f
commit
d3c5a51e9d
|
@ -175,3 +175,17 @@ can be incorporated into the ``auto`` transformation. Will convert
|
|||
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<>());
|
||||
|
||||
|
|
Loading…
Reference in New Issue