Promote
函数功能
Promote类用于表示输出数据类型为输入或属性指定的数据类型间的提升类型。
函数原型
class Promote {
public:
Promote(const std::initializer_list<const char *> &syms);
std::vector<const char *> Syms() const; // 返回参与类型提升的符号名
Promote(const Promote &other) = delete;
Promote &operator=(const Promote &other) = delete;
Promote(Promote &&other) noexcept;
Promote &operator=(Promote &&other) noexcept;
private:
std::shared_ptr<void> data_;
};
参数说明
返回值
无。
异常处理
无。
约束说明
无。