Xamarin Public Jenkins (auto-signing) 468663ddbb Imported Upstream version 6.10.0.49
Former-commit-id: 1d6753294b2993e1fbf92de9366bb9544db4189b
2020-01-16 16:38:04 +00:00

13 lines
419 B
ReStructuredText

.. title:: clang-tidy - modernize-shrink-to-fit
modernize-shrink-to-fit
=======================
Replace copy and swap tricks on shrinkable containers with the
``shrink_to_fit()`` method call.
The ``shrink_to_fit()`` method is more readable and more effective than
the copy and swap trick to reduce the capacity of a shrinkable container.
Note that, the ``shrink_to_fit()`` method is only available in C++11 and up.