8#ifndef HPP_ALIB_STRINGS_UTIL_STRINGVECTOR
9#define HPP_ALIB_STRINGS_UTIL_STRINGVECTOR 1
15namespace alib {
namespace strings::util {
47template<
typename TChar,
typename TAllocator>
49 , lang::StdContainerAllocator<strings::TString<TChar>,
83 {
return vectorBase::get_allocator().GetAllocator(); }
88 {
return integer(vectorBase::size()); }
96 return integer(vectorBase::size()) - 1;
105 if (idx >= 0 && idx <
Size())
106 return vectorBase::at(
size_t(idx));
AllocatorType & GetAllocator() noexcept
TAllocator AllocatorType
The allocator type that TAllocator specifies.
integer Size() const noexcept
TStringVector(AllocatorType &pAllocator)
strings::TString< TChar > StringType
Type definition of the stored strings.
integer Add(const strings::TString< TChar > &src)
std::vector< StringType, lang::StdContainerAllocator< StringType, TAllocator > > vectorBase
The vector type that TAllocator specifies.
String TryGet(integer idx)
~TStringVector()=default
Destructor.
TChar CharType
Type definition of the given template parameter TChar.
strings::TString< character > String
Type alias in namespace alib.
constexpr String NULL_STRING
A nulled string of the default character type.
lang::integer integer
Type alias in namespace alib.