promote< T > Class Template Reference | |||||
Public Types | |
| typedef T | type |
Detailed Description
template<typename T>
class adobe::promote< T >
- Details:
- Type promotion is the operation of converting a value into another type without any loss of resolution as to the original value (lossless conversion). For example, type promotion is implicit in the language when one sets a
doublefrom along. Further explicit type promotions are possible for user-defined types through template specializations of this struct. Seeadobe::value_tfor a type that utilizes adobe::promote.
- Note:
charis not specified to promote towchar_tas standard behavior. Without knowing the source or destination character encodings there is not enough information to do this type promotion correctly.
- See Also:
adobe::static_name_tadobe::value_t
Standard Promotions
- The following promote to
double:shortunsigned shortintunsigned intlongunsigned longfloat
Definition at line 24 of file conversion.hpp.
Member Typedef Documentation
Type to which T can be promoted. Default is T itself.
Definition at line 26 of file conversion.hpp.

