```cpp #include #include #include //auto ptr //shared_ptr //unique_ptr //weak_ptr class Parent; //采用前置声明 using ParentPtr = std::shared_ptr; typedef st... ...
分类:
编程语言 时间:
2020-02-24 21:03:42
阅读次数:
90
```cpp #include #include #include /* //this //调用了两次析构函数, ParentPtr p(this); //智能指针出了作用域后就delete this ,析构了 //所以错了,为了解决这个问题,就需要自身的类继承于 std::enable_share... ...
分类:
编程语言 时间:
2020-02-24 21:03:10
阅读次数:
121
```cpp #include #include #include class Object; typedef std::unique_ptr UniqueObjectPtr; using ObjectPtr = std::shared_ptr; void print(const UniqueObj... ...
分类:
编程语言 时间:
2020-02-24 20:24:28
阅读次数:
73
```cpp #include #include #include //智能指针总结: /* */ void sharedPtrNotice(); class Parent; typedef std::shared_ptr ParentPtr; typedef std::weak_ptr WeakP... ...
分类:
编程语言 时间:
2020-02-24 20:10:34
阅读次数:
106
使用深度选择器 /deep/,使用方法如下 <style lang="less" scoped> /deep/.van-tabs__wrap::after{ border: none; } </style> ...
分类:
其他好文 时间:
2020-02-24 15:09:25
阅读次数:
252
1.redis cluster集群是什么? redis cluster集群是一个由多个主从节点群组成的分布式服务器群,它具有复制、高可用和分片特性。Redis cluster集群不需要sentinel哨兵也能完成节点移除和故障转移的功能。 需要将每个节点设置成集群模式,这种集群模式没有中心节点,可水 ...
分类:
其他好文 时间:
2020-02-24 14:50:58
阅读次数:
67
一、抛砖引玉 既然Java中支持以多线程的方式来执行相应的任务,但为什么在JDK1.5中又提供了线程池技术呢?这个问题大家自行脑补,多动脑,肯定没坏处,哈哈哈。。。 说起Java中的线程池技术,在很多框架和异步处理中间件中都有涉及,而且性能经受起了长久的考验。可以这样说,Java的线程池技术是Jav ...
分类:
编程语言 时间:
2020-02-23 22:40:30
阅读次数:
70
BERT强大的特征抽取能力在各方面的应用如火如荼的展开,今日准备要对BERT输出的特征进行组合,以期能具有更好地变现,现在对model对象做详细的分析。 直观上,我们能够利用bert的信息有:1)pool out [CLS];2)encoder layer;3)hidden state first ...
分类:
其他好文 时间:
2020-02-23 21:52:30
阅读次数:
601
在asp.net zero 添加实体,并将其添加到数据库对应的表 步骤: 1. 创建实体 2. 创建常量 3. 数据库映射配置 4. 执行数据库迁移命令 创建实体 在SIS.Core层创建Demo文件夹,并添加DemoObject实体: 创建常量 在SIS.Core.Shared层创建实体的常量,创 ...
分类:
数据库 时间:
2020-02-23 20:04:56
阅读次数:
66
这个功能是比较常见的,初入门,把几个变量和流程搞清楚。 代码注释很清楚,方便以后优化。 前端主要代码 <template> <div class="page-container"> <!--查询工具栏--> <div class="toolbar" style="float:left;"> <el- ...
分类:
其他好文 时间:
2020-02-23 18:41:29
阅读次数:
943