Skip to content
You are viewing documentation for v6.1.2. Switch to latest (main).

ftxui::ConstStringListRef ​

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

An adapter. Reference a list of strings.

Supported input:

  • std::vector<std::string>
  • std::vector<std::string>*
  • std::vector<std::wstring>*
  • Adapter*
  • std::unique_ptr<Adapter>

Summary ​

SymbolDescription
Variant
ConstStringListRef
~ConstStringListRef
operator=
size
operator[]

Public Types ​

Variant ​

cpp
using Variant = std::variant< const std::vector< std::string >, const std::vector< std::string > *, const std::vector< std::wstring > *, Adapter *, std::unique_ptr< Adapter > >;

Public Member Functions ​

ConstStringListRef ​

~ConstStringListRef ​

operator= ​

cpp
ConstStringListRef & operator=(const ConstStringListRef &);

operator= ​

ConstStringListRef ​

ConstStringListRef ​

ConstStringListRef ​

cpp
ConstStringListRef(std::vector< std::string > value);

ConstStringListRef ​

cpp
ConstStringListRef(const std::vector< std::string > * value);

ConstStringListRef ​

cpp
ConstStringListRef(const std::vector< std::wstring > * value);

ConstStringListRef ​

ConstStringListRef ​

cpp
ConstStringListRef(std::unique_ptr< AdapterType > adapter);

size ​

cpp
size_t size() const;

Examples: component/button_in_frame, component/canvas_animated, component/checkbox_in_frame, component/dropdown_custom, component/flexbox_gallery, component/focus, component/gallery, component/homescreen, component/input, component/input_in_frame, component/menu_entries, component/menu_in_frame (+15 more)

operator[] ​

cpp
std::string operator[](size_t i) const;