Reading Notes Efficient c++ Item 52 If you implement placement new, you also implement placement delete
1. What happens when an exception is thrown by calling the normal version of operator new?
Placement new and placement delete are not the most common beasts in C++ zoos, so you don't have to worry about being unfamiliar with them. When you implement a new expression like this, recall Item 16 and Item 17:
1 Widget *pw = new Widget;
Tw ...
Posted by pete07920 on Wed, 19 Dec 2018 19:51:05 -0800
C++ Case Analysis - C++ Packaging of SQLite3 C API (Part I)
For reprinting, please indicate the source: http://cyc.wiki/index.php/2017/07/12/cpp-case-sqlite3-cpp-1/
Never say "proficient in C++".
This actually comes from one of my work projects. One of the requirements is to encapsulate the original C API of SQLite3 in C++. At that time, the encapsulation did the same, referring to so ...
Posted by dandaman2007 on Wed, 19 Dec 2018 18:39:05 -0800
Use of heap correlation function in STL: make_heap, push_heap, pop_heap, sort heap
This paper introduces how to use heap (heap) algorithm in STL. The first contact with heap data structure is in the university data structure textbook, it is a complete binary tree. In STL, heap is the form of algorithm for us to use. It includes the following functions:
make_heap: Create a heap. O(N) based on the specified ...
Posted by Gappa on Tue, 18 Dec 2018 18:00:04 -0800
C++ Intelligent Pointer, Pointer Container Principle and Simple Implementation (auto_ptr,scoped_ptr,ptr_vector).
Catalog
C++ Intelligent Pointer, Pointer Container Principle and Simple Implementation (auto_ptr,scoped_ptr,ptr_vector).
auto_ptr
scoped_ptr
ptr_vector
C++ Intelligent Pointer, Pointer Container Principle and Simple Implementation (auto_ptr,scoped_ptr,ptr_vector).
Preface
Recently, another muduo asynchronous log touched many smart pointers, ...
Posted by MaxD on Tue, 18 Dec 2018 09:06:04 -0800
BZOJ 1941: [Sdoi2010]Hide and Seek(k-d Tree)
Time Limit: 16 Sec Memory Limit: 162 MBSubmit: 1712 Solved: 932[Submit][Status][Discuss]
Description
Little pig iPig has just finished the boring pig algebra class in PKU. The talented iPig is very lonely by this door to his extremely simple lesson. In order to eliminate loneliness, he decides to play a more lonely game with his good frie ...
Posted by spacee on Mon, 17 Dec 2018 11:48:03 -0800
DES/AES ciphertext transmission using Java and C/C++
It was thought that DES and AES, the popular encryption algorithms, should be simple to use. However, two variables were found after the study:
The way of partitioning. Encryption is done block by block. Blocking methods are: CBC, ECB, CFB...
The way of padding. When the number of bits of data is less than the size of the block, it nee ...
Posted by mrpickleman on Mon, 17 Dec 2018 11:36:04 -0800
DirectX11 With Windows SDK-13 Abandons FX11 and Preliminary Implementation of BasicManager Class
Preface
DirectX11 With Windows SDK complete directory: http://www.cnblogs.com/X-Jun/p/9028764.html
So far, none of the tutorial projects has used the Effects11 framework class to draw scenes. Because in the D3D Compile API (#47) version, if you try to compile the fx_5_0 effect file, you will receive such a warning:X4717: Effects deprecated for ...
Posted by yasir_memon on Fri, 14 Dec 2018 14:12:03 -0800