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
| Symbol | Description |
|---|---|
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
cpp
ConstStringListRef();~ConstStringListRef
cpp
~ConstStringListRef();operator=
cpp
ConstStringListRef & operator=(const ConstStringListRef &);operator=
cpp
ConstStringListRef & operator=(ConstStringListRef &&);ConstStringListRef
cpp
ConstStringListRef(ConstStringListRef &&);ConstStringListRef
cpp
ConstStringListRef(const 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
cpp
ConstStringListRef(Adapter * adapter);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;