【文件属性】:
文件名称:fixed_string:固定大小的C ++ 17字符串
文件大小:140KB
文件格式:ZIP
更新时间:2021-05-25 09:25:34
cplusplus constexpr header-only cpp17 cpp-library
fixed_string
C ++库提供了basic_fixed_string模板,该模板将std::array固定大小的语义和std::string语义组合在一起
特征
C ++ 17或更高
仅标头
无依赖
没有动态分配
完全constexpr
可用作类非类型模板参数(自C ++ 20起)
例子
建造
constexpr fixstr::fixed_string foo = " foo " ;
级联
using namespace fixstr ;
constexpr fixed_string first = " Hello, " ;
constexpr fixed_string second = " World! " ;
constexpr auto result = first + second; // "Hello, World!"
比较
using namespac
【文件预览】:
fixed_string-master
----.github()
--------workflows()
----.clang-format(173B)
----CMakeLists.txt(2KB)
----.idea()
--------misc.xml(137B)
--------codeStyles()
--------.gitignore(220B)
----LICENSE(1KB)
----test()
--------test.cpp(14KB)
--------CMakeLists.txt(1KB)
--------third_party()
----README.md(2KB)
----conanfile.py(1KB)
----.gitignore(1KB)
----include()
--------fixed_string.hpp(26KB)