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

Unified Diff: i18n/unicode/tmunit.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/nounit.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: i18n/unicode/tmunit.h
===================================================================
--- i18n/unicode/tmunit.h (revision 41097)
+++ i18n/unicode/tmunit.h (working copy)
@@ -73,18 +73,29 @@
virtual UObject* clone() const;
/**
- * Copy operator.
+ * Copy constructor.
* @stable ICU 4.2
*/
TimeUnit(const TimeUnit& other);
/**
- * Assignment operator.
+ * Move constructor.
+ * @draft ICU 62
+ */
+ TimeUnit(TimeUnit&& src) U_NOEXCEPT;
+
+ /**
+ * Copy assignment operator.
* @stable ICU 4.2
*/
TimeUnit& operator=(const TimeUnit& other);
/**
+ * Move assignment operator.
+ */
+ TimeUnit& operator=(TimeUnit&& src) U_NOEXCEPT;
+
+ /**
* Returns a unique class ID for this object POLYMORPHICALLY.
* This method implements a simple form of RTTI used by ICU.
* @return The class ID for this object. All objects of a given
« no previous file with comments | « i18n/unicode/nounit.h ('k') | no next file » | no next file with comments »

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