This repository has been archived on 2024-06-13. You can view files and clone it, but cannot push or open issues or pull requests.
nekohook/modules/csgo/sdk/pstring.h
2020-08-04 13:13:01 -04:00

29 lines
593 B
C++

#pragma once
#include <sstream>
#include <string>
class pstring : public std::string {
public:
pstring() : std::string() {}
template <typename T>
pstring(const T v) : std::string(v) {}
template <typename T>
pstring& operator<<(const T s) {
std::stringstream stream;
stream << *this;
stream << s;
*this = stream.str();
return *this;
}
pstring& operator+(const unsigned int i) {
std::stringstream stream;
stream << *this;
stream << i;
*this = stream.str();
return *this;
}
};