fixed_string
fixed_string copied to clipboard
C++17 string with fixed size
Suggested API: ```cpp // numeric conversions template constexpr int stoi(const fixed_string& str, int base = 10); template constexpr unsigned stou(const fixed_string& str, int base = 10); template constexpr long stol(const...
## API Reference * [x] Constructors * [x] `operator=` * [x] `at` * [x] `front` * [x] `back` * [x] `empty` * [x] `size` & `length` * [x] `max_size` *...
Example: https://github.com/YACLib/YACLib/blob/main/.github/workflows/clang-format.yml
Using type aliases instead of inheritance makes it possible to generalize the algorithm templates for all specializations of fixstr::basic_fixed_string. For example (see also [p1406r1](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1406r1.pdf)): ```c++ namespace std { template struct...
Example from implementation of `basic_string_view` by Microsoft: https://github.com/microsoft/STL/blob/main/stl/inc/xstring#L1224-L1230
Solution for #22
Clang-Tidy allows to specify code style settings in a config file, so `.idea` folder is redundant. Official docs: https://clang.llvm.org/extra/clang-tidy/checks/readability-identifier-naming.html Example config: https://github.com/YACLib/YACLib/blob/main/.clang-tidy
Currently tests are placed in one file which is not very convenient. The proposed solution is to separate tests to files by some logical pieces: for example, a file per...
It would be nice if you could make this class C++11-compatible. Many of us are stuck using older versions of the language standard... Obviously, this will mean some constexpr members...