---
title: 构造和析构函数
description: "OpLibRegister的构造函数和析构函数。"
url: https://www.hiascend.com/document/detail/zh/CANNCommunityEdition/latest/maintenref/basicdataapi/atlasopapi_07_00542.html
sourcePath: /source/zh/CANNCommunityEdition/920beta1/maintenref/basicdataapi/atlasopapi_07_00542.html
indexId: 91ec8d58570dba168c31c34e35a57c040b01655d87b47358aeba751c17bb33f589
---
# 构造和析构函数

#### 函数功能

OpLibRegister的构造函数和析构函数。


#### 函数原型

```
explicit OpLibRegister(const char_t *vendor_name)
OpLibRegister(OpLibRegister &&other) noexcept
OpLibRegister(const OpLibRegister &other)
OpLibRegister &operator=(const OpLibRegister &) = delete
OpLibRegister &operator=(OpLibRegister &&) = delete
~OpLibRegister()
```


#### 参数说明

| 参数 | 输入/输出 | 说明 |
| --- | --- | --- |
| vendor\_name | 输入 | 自定义算子厂商名。 |
| other | 输入 | 另一个OpLibRegister对象。 |


#### 返回值说明

返回一个OpLibRegister对象。


#### 约束说明

无。
