Promote类用于表示输出数据类型为输入或属性指定的数据类型间的提升类型。
1 2 3 4 5 6 7 8 9 10 11 | 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 |
输入 |
参与提升的类型符号列表。 符号包括输入类型的符号或者属性指定的符号。 |
other |
输入 |
另一个Promote对象。 |
无。
无。
无。