From: Dmitri Gribenko Date: Sat, 27 Apr 2013 13:41:02 +0000 (+0000) Subject: Documentation: add an idea for a cpp14-migrate transform for N3421 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=395b0af62f902fc1bb26cd7084fb52f5054150d4;p=clang Documentation: add an idea for a cpp14-migrate transform for N3421 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180672 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/ClangTools.rst b/docs/ClangTools.rst index d7f03a53ae..9312e6baf0 100644 --- a/docs/ClangTools.rst +++ b/docs/ClangTools.rst @@ -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 + `_). + For example: + + .. code-block:: c++ + + sort(v.begin(), v.end(), greater()); + + should be rewritten to: + + .. code-block:: c++ + + sort(v.begin(), v.end(), greater<>()); +