Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(748)

Unified Diff: i18n/unicode/measunit.h

Issue 342730043: [Abandoned] Adding move operators to MeasureUnit and subclasses. Base URL: svn+icussh://source.icu-project.org/repos/icu/branches/shane/numberformat4/icu4c/source/
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « i18n/unicode/currunit.h ('k') | i18n/unicode/nounit.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: i18n/unicode/measunit.h
===================================================================
--- i18n/unicode/measunit.h (revision 41097)
+++ i18n/unicode/measunit.h (working copy)
@@ -50,14 +50,26 @@
* @stable ICU 3.0
*/
MeasureUnit(const MeasureUnit &other);
-
+
/**
- * Assignment operator.
+ * Move constructor.
+ * @draft ICU 62
+ */
+ MeasureUnit(MeasureUnit &&src) U_NOEXCEPT;
+
+ /**
+ * Copy assignment operator.
* @stable ICU 3.0
*/
MeasureUnit &operator=(const MeasureUnit &other);
/**
+ * Move assignment operator.
+ * @draft ICU 62
+ */
+ MeasureUnit &operator=(MeasureUnit &&src) U_NOEXCEPT;
+
+ /**
* Returns a polymorphic clone of this object. The result will
* have the same class as returned by getDynamicClassID().
* @stable ICU 3.0
« no previous file with comments | « i18n/unicode/currunit.h ('k') | i18n/unicode/nounit.h » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b