12#ifndef ROC_CORE_STRING_LIST_H_
13#define ROC_CORE_STRING_LIST_H_
48 const char*
nextof(
const char* str)
const;
65 bool push_back(
const char* str_begin,
const char* str_end);
82 enum { MinCapacity = 128 };
84 bool grow_(
size_t size);
Memory allocator interface.
Base class for non-copyable objects.
const char * back() const
Get last string.
const char * front() const
Get first string.
void clear()
Clear the list.
bool push_unique(const char *str_begin, const char *str_end)
Append string from a range to the list if it's not in the list already.
bool push_back(const char *str_begin, const char *str_end)
Append string from a range to the list.
const char * nextof(const char *str) const
Get next string.
StringList(IAllocator &allocator)
Initialize empty string list.
bool push_unique(const char *str)
Append string to the list if it's not in the list already.
size_t size() const
Get number of elements.
bool push_back(const char *str)
Append string to the list.
Memory allocator interface.
Commonly used types and functions.