Promote

Description

The Promote class is used to indicate that the output data type is the promotion type between the data types specified by the input or attribute.

Prototype

 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; // Return the symbol name involved in type promotion.
  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_;
};

Parameters

Parameter

Input/Output

Description

syms

Input

List of type symbols involved in promotion.

Symbols include symbols of input types or symbols specified by attributes.

other

Input

Another promote object.

Returns

None

Troubleshooting

None

Constraints

None