Kanzi  3.9.9
Kanzi Engine C++ API
kanzi::FixedString Class Reference

String that points to a string literal. More...

#include <kanzi/core/string/fixed_string.hpp>

Public Member Functions

const char * c_str () const
 Returns the pointer to string literal. More...
 
 FixedString (const char *literal)
 Constructor. More...
 
 operator string_view () const
 

Friends

bool operator== (const FixedString &left, const FixedString &right)
 

Detailed Description

String that points to a string literal.

You can use FixedString objects to indicate that a string will have the lifetime equal to the duration of the program. You should use the kzMakeFixedString macro to construct FixedString objects. Compilers with C++11 support will emit an error if the parameter you supply to kzMakeFixedString is not a string literal.

Constructor & Destructor Documentation

kanzi::FixedString::FixedString ( const char *  literal)
inlineexplicit

Constructor.

Member Function Documentation

kanzi::FixedString::operator string_view ( ) const
inline
const char* kanzi::FixedString::c_str ( ) const
inline

Returns the pointer to string literal.

Friends And Related Function Documentation

bool operator== ( const FixedString left,
const FixedString right 
)
friend

The documentation for this class was generated from the following file: