码迷,mamicode.com
首页 >  
搜索关键字:dangling pointer    ( 2210个结果
C指针
计算机中所有的数据都必须放在内存中,以二进制的形式存储在内存中,才能被CPU所使用。不同类型的数据占用的字节数不一样,为了正确地访问这些数据,必须为每个字节都编上号码。将内存中字节的编号称为地址(Address)或指针(Pointer)。地址从 0 开始依次增加,对于 32 位环境,程序能够使用的内 ...
分类:其他好文   时间:2020-01-23 12:35:01    阅读次数:80
c++, std::shared ptr
0. 1. std::shared_ptr is a smart pointer that retains shared ownership of an object through a pointer. Several shared_ptr objects may own the same obj ...
分类:编程语言   时间:2020-01-21 00:40:14    阅读次数:103
c++bind函数的用法
bind函数: auto newCallable = bind(callable, arg_list); callable依据手册可以是: Callable object (function object, pointer to function, reference to function, po ...
分类:编程语言   时间:2020-01-20 23:09:47    阅读次数:200
What is the difference between btree and rtree indexing?
https://softwareengineering.stackexchange.com/questions/113256/what-is-the-difference-between-btree-and-rtree-indexing 52 BTree BTree (in fact B*Tree) ...
分类:其他好文   时间:2020-01-20 20:46:31    阅读次数:76
[LeetCode] 138. Copy List with Random Pointer
拷贝带有随机指针的链表。题意是input给了一个带有next和random两个指针的链表,对其进行深度遍历(deep copy)。例子, Input: head = [[7,null],[13,0],[11,4],[10,2],[1,0]] Output: [[7,null],[13,0],[11, ...
分类:其他好文   时间:2020-01-18 11:08:28    阅读次数:83
JAVASE(八) 数组: 一维数组、二维数组、动态数组、静态数组
1、一维数组 1.1 数组的声明和初始化声明方式: String str[]; //不建议使用 String[] str2; 静态初始化:初始化和赋值同时进行 String[] str = new String[]{“aa”,”bb”} String[] str2 = {“aa”,”bb”} //声 ...
分类:编程语言   时间:2020-01-17 09:30:06    阅读次数:125
Linux进程内消息总线设计
文章目录 Windows平台进程内消息总线如果没有消息总线,会产生什么问题死循环包含关系高耦合、低内聚消息总线结构图原理生产者与总线的关系总线与消费者的关系Linux进程内消息总线设计使用进程间实时信号来实现进程内消息总线参考文档整体流程主线程注册总线消息处理函数生产者线程产生并发送消息到总线接收并 ...
分类:系统相关   时间:2020-01-14 12:59:01    阅读次数:95
webrtc 信号槽实现分析
前言 从网上看到的另一句话,webrtc中的信号槽像是变种的观察者模式,当有信号发送的时候,信号发送者通过遍历自己的所有connect的信号槽,然后执行他们的回调;起初会有为什么需要信号槽 信号槽与普通的函数回调有什么区别的疑问, 个人认为信号槽是一种面向对象的回调,当回调涉及到对象,需要考虑到执行 ...
分类:Web程序   时间:2020-01-14 09:48:26    阅读次数:94
[LeetCode] 3. Longest Substring Without Repeating Characters
最长无重复字符的子串。 题意是给一个input字符串,请输出其最长的,没有重复字符的substring。这是two pointer/sliding window的基础题。例子 Example 1: Input: "abcabcbb" Output: 3 Explanation: The answer ...
分类:其他好文   时间:2020-01-14 09:18:01    阅读次数:72
[LC] 117. Populating Next Right Pointers in Each Node II
Given a binary tree struct Node { int val; Node *left; Node *right; Node *next; } Populate each next pointer to point to its next right node. If there ...
分类:其他好文   时间:2020-01-13 01:07:44    阅读次数:93
2210条   上一页 1 ... 19 20 21 22 23 ... 221 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!