Skip to content
You are viewing documentation for v4.1.0. Switch to latest (main).

ftxui::StringRef ​

cpp
#include <ftxui/util/ref.hpp>

An adapter. Own or reference a constant string. For convenience, this class convert multiple mutable string toward a shared representation.

Summary ​

SymbolDescription
StringRef
operator*
operator->

Public Member Functions ​

StringRef ​

cpp
StringRef(std::string * ref);

StringRef ​

cpp
StringRef(std::string ref);

StringRef ​

cpp
StringRef(const wchar_t * ref);

StringRef ​

cpp
StringRef(const char * ref);

operator* ​

cpp
std::string & operator*();

operator-> ​

cpp
std::string * operator->();