| 16 | class UnaryNode : public NaryNode { |
| 17 | public: |
| 18 | UnaryNode(const af::dtype type, const char *op_str, Node_ptr child, |
| 19 | af_op_t op) |
| 20 | : NaryNode(type, op_str, 1, {{child}}, op, child->getHeight() + 1) { |
| 21 | static_assert(std::is_nothrow_move_assignable<UnaryNode>::value, |
| 22 | "UnaryNode is not move assignable"); |
| 23 | static_assert(std::is_nothrow_move_constructible<UnaryNode>::value, |
| 24 | "UnaryNode is not move constructible"); |
| 25 | } |
| 26 | }; |
| 27 | } // namespace common |
| 28 | } // namespace arrayfire |