/m_str

The std::string header-only library

Primary LanguageC++MIT LicenseMIT

Docker Image CI CodeFactor

m_str

The std::string header-only library is written with constexpr, std::unique_ptrs and SSO realization with std::variant (Small String Optimization)

Install

git clone https://github.com/dan4ik605743/m_str
cd m_str
mkdir build && cd build
cmake ..
sudo cmake --build . --target install --config Release

Usage

#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;
}

Usage with not installed

Check examples

Documentation