跳到主要内容

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_;
};

参数说明

参数输入/输出说明
syms参与提升的类型符号列表。符号包括输入类型的符号或者属性指定的符号。

返回值

异常处理

约束说明