CreateFrom
Description
Converts DT-type data types (int64_t, float, and std::string) to T-type data types (INT, FLOAT, and STR). The supported conversion options are as follows:
- Converting int64_t type to INT
- Converting float to FLOAT
- Converting std::string to STR
Prototype
template<typename T, typename DT>
static T CreateFrom(DT &&val)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
val |
Input |
Parameter of the DT type. |
Returns
Parameter of the T type.
Exception Handling
None.
Restrictions
None.
Parent topic: AttrValue