Skip to content

Releases: ChristianPanov/static_string

Version 1.0.0

17 Jan 00:57
Compare
Choose a tag to compare

First official release version

What's Added

  • Compile-time static string class with CTAD(no need to specify the string size, it will be deduced from the constructor argument)
  • Compile-time string constructors
    - constexpr basic_static_string() = default;
    - constexpr basic_static_string(const CharT(&arr)[Size]);
    - constexpr basic_static_string(const std::array<CharT, Size>& arr);
    - constexpr basic_static_string(const basic_static_string<CharT, Size>& other);
  • Compile-time string functions
    - constexpr bool empty() const;
    - constexpr std::size_t size() const;
    - constexpr std::size_t length() const;
    - constexpr std::array<CharT, Size> data() const;
  • Compile-time string concatenation