Changeset 7291 for code/branches/doc/src/libraries/util/MultiType.h
- Timestamp:
- Aug 31, 2010, 5:19:36 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/doc/src/libraries/util/MultiType.h
r7284 r7291 52 52 - setValue<T>(value) assigns a new value and changes the type to T. 53 53 54 @example 54 Examples: 55 @code 55 56 MultiType a = 10;; // a has now the type int and the value 10 56 57 a.setValue("3.14"); // a has still the type int and "3.14" gets converted, therefore the value is now 3 … … 58 59 a.convert<bool>(); // converts 3.14 to bool, which is true 59 60 a = false; // assigns false, this is equivalent to a.setValue(false) 61 @endcode 60 62 61 63 @note
Note: See TracChangeset
for help on using the changeset viewer.