#include #include "drawtypes/label.hpp" #include "utils/factory.hpp" #include "utils/string.hpp" POLYBAR_NS namespace drawtypes { string label::get() const { return m_tokenized; } label::operator bool() { return !m_tokenized.empty(); } label_t label::clone() { vector tokens; if (!m_tokens.empty()) { std::back_insert_iterator back_it(tokens); std::copy(m_tokens.begin(), m_tokens.end(), back_it); } return factory_util::shared