.. index:: pair: struct; FixedString .. _doxid-struct_fixed_string: template struct FixedString =========================== .. toctree:: :hidden: Overview ~~~~~~~~ .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include template struct FixedString { // fields static constexpr auto :target:`Length` = N; char :target:`m_data`[N] {}; // construction :target:`FixedString`(const char(&) str[N]); :target:`FixedString`(const FixedString& str); template :target:`FixedString`(T str); :target:`FixedString`(); // methods constexpr :target:`operator auto` () const; constexpr :ref:`operator int` () const; constexpr :target:`operator std::string_view` () const; constexpr :target:`operator std::string` () const; constexpr const char* :target:`data`() const; template constexpr bool :target:`compare`(const char(&) other[M]) const; constexpr bool :target:`compare`(const char*const str) const; constexpr bool :target:`compare`(const std::string_view& str) const; }; .. _details-struct_fixed_string: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Methods ------- .. index:: pair: function; operator int .. _doxid-struct_fixed_string_1a8c1274ff62674340598be84e947b8ccf: .. ref-code-block:: cpp :class: doxyrest-title-code-block constexpr operator int () const This is only here so that the CLang LSP doesn't complain about template parameter deduction. Remove once this is implemented.