The std::string header-only library is written with constexpr, std::unique_ptrs and SSO realization with std::variant (Small String Optimization)
git clone https://github.com/dan4ik605743/m_str
cd m_str
mkdir build && cd build
cmake ..
sudo cmake --build . --target install --config Release
#include <iostream>
#include <m_str/lib.hh> // Header-only
using namespace m_str;
int main() {
m_str str("test");
std::cout << str << std::endl;
return 0;
}
Check examples