std::string_view 的使用

This commit is contained in:
2026-06-29 09:40:55 +08:00
parent cd446b7ca8
commit 8daf67aa5d
52 changed files with 1420 additions and 1367 deletions
+2 -1
View File
@@ -3,6 +3,7 @@
#include "../global_include.h"
#include <stack>
#include <string_view>
struct Mode_Msg_Buffer {
void push(const std::shared_ptr<SSR::Msg> &msg) {
@@ -37,7 +38,7 @@ protected:
};
struct BIN_Msg_Buffer {
void push(const std::string &msg);
void push(std::string_view msg);
const std::vector<std::string *> &get_all();
std::atomic<size_t> mode_s_msg_num{};