diff --git a/docs/ClangTools.rst b/docs/ClangTools.rst index d7f03a53ae4dbdd5b65560f10c8714c2ae9c170e..9312e6baf09ab5b23f44fe766f6d044b95045c8d 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 + <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<>()); +