wex v24.04.0
Public Member Functions | List of all members
wex::item_vector Class Reference

Offers a class to add functionality to a vector of items. More...

#include <wex/ui/item-vector.h>

Public Member Functions

 item_vector (const std::vector< item > *v)
 Constructor, provide the vector of items.
 
template<typename T >
const T find (const std::string &label) const
 Finds item by label.
 

Detailed Description

Offers a class to add functionality to a vector of items.

Member Function Documentation

◆ find()

template<typename T >
const T wex::item_vector::find ( const std::string & label) const

Finds item by label.

First tries to get the item from the config, if not yet present, returns the default value from the vector.