自定义内存分配池

This commit is contained in:
2026-07-29 18:08:57 +08:00
parent 5a3511bb58
commit d943d82554
122 changed files with 3602 additions and 1215 deletions
+2 -2
View File
@@ -1,11 +1,11 @@
#pragma once
#include <QMouseEvent>
#include <QVector>
#include <vector>
namespace Psc {
template <typename Handler_Type>
class Delegate {
public:
QVector<Handler_Type> handlers;
std::vector<Handler_Type> handlers;
Delegate& operator+=(const Handler_Type& handler) {
if (std::find(handlers.begin(), handlers.end(), handler) == handlers.end()) {
handlers.push_back(handler);