std::string_view 的使用
This commit is contained in:
@@ -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{};
|
||||
|
||||
Reference in New Issue
Block a user