Use a red black tree to encapsulate set and map at the same time
🔒 Quick navigation and articles related to this article 🔒
Basic use of set and mapClick through to the articleRed black treeClick through to the article
Red black tree code
We want to encapsulate the red black tree of KV model and simulate the implementation of set and map. The code used is as follows
#include<iostream>
using nam ...
Posted by jeliot on Fri, 21 Jan 2022 16:49:36 +0100
Introduction to scan line + line segment tree solution to stars in AcWing 248 window
--From Nanchang Institute of Technology ACM intense training team
This week, I learned how to solve the problem of line segment tree and scan line. Here is a brief introduction by the chicken: Generally, the simplest problem of scan line is the bare template of scan line (generally speaking, the data range is small). Secondly, it is ...
Posted by ian2k01 on Fri, 21 Jan 2022 06:45:41 +0100
Bmp image rotation and BMP to YUV (4:2:0)
1, Briefly introduce ideas:
Brief description of BMP file: BMP file is composed of file header, information header, color information and graphic data. (since the 24 bit BMP here does not consider the color information), only the file header, information header and graphic data are left in the BMP file.
When reading BMP, the reading order is: ...
Posted by hyngvesson on Fri, 21 Jan 2022 05:57:36 +0100
Learning notes of data structure, algorithm and application - C + + language description - linear table
1, Linear meter interface specification
Linear tables generally need to implement the following interfaces:
#pragma once
#include <iostream>
template<class T>
class linearList
{
public:
virtual ~linearList() {};
virtual bool empty() = 0;
virtual int size() const = 0;
virtual T& get(int index) const = 0;
virtual int in ...
Posted by beboo002 on Fri, 21 Jan 2022 02:46:20 +0100
C + + learning notes - container
container
classification
Sequence container: objects are arranged in order and indexed with valuesAssociated container: the order of objects is not important, and keys are used for indexingAdapter: adjust the behavior of the original container to expose new type interfaces or return new elementsGenerators: constructing element sequences
Sequ ...
Posted by AZDoc on Thu, 20 Jan 2022 23:38:44 +0100
Those interactive parameters of fluent and c
First, the official article introduces the basic usage methods: Official documents
Basic use
Reference article: Using c code on Fluent - (I) projects with source code_ Simplecoder's blog CSDN blog_ Fluent calls c codeÂ
1. Create a new plugin project using the instruction in vscode: fluent create - t plugin native_ add 2. In the new native_ ...
Posted by Ivan_ on Thu, 20 Jan 2022 22:06:56 +0100
boost::asio::io_ Event loop of context
Transferred from: https://www.jianshu.com/p/d6ae8adb5914
brief introduction boost::asio::io_context literally means the context of Io. It can be understood that any io of boost will involve an io_context, synchronizing IO will implicitly start an io_context, and asynchronous IO requires us to specify one, and then call IO at the right time_ Th ...
Posted by alexks on Thu, 20 Jan 2022 20:49:52 +0100
Boost: extract the type of c + + language and extract class from python object
preface
The difference of data types between python and c + + is a common problem in conversion. Some simple data types can be used in general, but many middle types cannot be used directly. When encountering such problems, boost The extract class provided by python is a convenient solution. This article is used to record my understanding of e ...
Posted by xkaix on Thu, 20 Jan 2022 20:42:56 +0100
Qt network programming based on C + + -- network conference program based on IP Multicast
catalogue
1, Experimental topic
2, Experimental purpose
3, Overall design
1. Experimental principle
2. Design steps
4, Detailed design
1. Procedure flow chart
5, Experimental results and analysis
6, Summary and experience
1, Experimental topic
Network conference program based on IP Multicast
2, Experimental purpose
Referring t ...
Posted by AndrewBacca on Thu, 20 Jan 2022 20:38:55 +0100
Template specialization and type extraction
1, Purpose and significance of type extraction
1. Type extraction is the purpose
(1) A typical application is to distinguish whether T is a source generated type POD or a user-defined type in the template function
(2)POD,Plain Old Data, is simply understood as the basic types inherited from C by C + +, such as int, double, etc
(3) The e ...
Posted by BoltZ on Thu, 20 Jan 2022 20:22:23 +0100