#include <userver/components/component_list.hpp>
A list to keep a unique list of components to start with components::Run(), utils::DaemonMain() or components::RunOnce().
Definition at line 130 of file component_list.hpp.
Public Member Functions | |
template<typename Component > | |
ComponentList & | Append () & |
Appends a component with default component name Component::kName. | |
template<typename Component > | |
ComponentList & | Append (std::string_view name) & |
Appends a component with a provided component name. | |
ComponentList & | AppendComponentList (ComponentList &&other) & |
Merges components from other into *this . | |
ComponentList && | AppendComponentList (ComponentList &&other) && |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
template<typename Component , typename... Args> | |
ComponentList && | Append (Args &&...) && |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
bool | Contains (std::string_view name) const |
template<typename Component , typename... Args> | |
ComponentList && | Append (Args &&... args) && |
ComponentList & components::ComponentList::Append | ( | ) | & |
Appends a component with default component name Component::kName.
Definition at line 169 of file component_list.hpp.
ComponentList && components::ComponentList::Append | ( | Args &&... | args | ) | && |
Definition at line 181 of file component_list.hpp.
ComponentList & components::ComponentList::Append | ( | std::string_view | name | ) | & |
Appends a component with a provided component name.
Definition at line 174 of file component_list.hpp.
|
inline |
Definition at line 151 of file component_list.hpp.