最近在研究STL的空间配置器的时候,使用到内存池和定位new的场景,感觉知识优点遗忘,总结总结首先,什么是定位new??官方解释:我的理解:先申请一块内存空间,然后在这段空间上来构造对象(确定对象的位置),常使用到的场景是内存池内置类型使用规则:#include<new>//或者使用#include<iostream>,因为<iostream>中包含<ne
分类:
其他好文 时间:
2020-05-02 00:09:32
阅读次数:
52
在项目开发过程中,会经常碰到端口被占用的问题,一般情况下,为解决端口冲突,会选择一个不常用的端口号进行测试,但是有时候测试过程中,会提示: Error: listen EADDRINUSE: address already in use 127.0.0.1:3000 意思就是 3000 端口被占用了 ...
分类:
其他好文 时间:
2020-05-01 22:37:00
阅读次数:
463
在进行MySQL连接时,出现了如下错误: (1)数据库时区不匹配 (2)数据库连接请求超时 (3)连接池出现空指针异常,获取不到connection对象 甚至 再后来导致测试dbutils时出现错误,怎么也获取不到connection对象,当时debug又遇到关联源码问题,对于新手来说最后没有搞懂。 ...
分类:
数据库 时间:
2020-04-30 21:01:33
阅读次数:
122
We can use 'jest.spyOn', similr to 'spyOn' in Jasmine. jest.spyOn(utils, 'getWinner') We get 'getWinner' as a method. Jest has mockImplementation: // ...
分类:
编程语言 时间:
2020-04-30 15:55:04
阅读次数:
69
(1)直接创建索引 CREATE INDEX index_name ON table(column(length)) CREATE UNIQUE INDEX zipindex on ec_address(FIRST_LETTER(3)) mysql> create index index_name ...
分类:
数据库 时间:
2020-04-30 15:19:55
阅读次数:
60
The complete explanation is that 1.0.x and 1.1.x do not have the same naming conventions for the generated libraries. OpenSSL 1.1.x has moved into wha ...
分类:
其他好文 时间:
2020-04-30 11:23:13
阅读次数:
98
https://mp.weixin.qq.com/s/y29UmteibObCbYZgqLWG7A 简单介绍BootROM的实现。 1. BootROMParams 记录BootROM相关的参数: 其中: a. address: BootROM的地址; b. size:占用地址空间的大小; c. h ...
分类:
其他好文 时间:
2020-04-30 11:14:31
阅读次数:
92
题目描述 Although Inzane successfully found his beloved bone, Zane, his owner, has yet to return. To search for Zane, he would need a lot of money, of whi ...
分类:
其他好文 时间:
2020-04-30 09:32:09
阅读次数:
48
"题目" Although Inzane successfully found his beloved bone, Zane, his owner, has yet to return. To search for Zane, he would need a lot of money, of whi ...
分类:
其他好文 时间:
2020-04-29 23:39:16
阅读次数:
77