#if defined(TETL_ENABLE_CXX_MODULES)
import etl;
#else
#endif
#include <stdio.h>
#include <stdlib.h>
auto main() -> int
{
static_assert(str.capacity() == 32);
str.append("Hello", 2);
str.append(2, 'l');
str.push_back('o');
str.append(other, 0);
auto const copy = str;
auto toUpper = [](
auto ch) {
return static_cast<char>(
etl::toupper(ch)); };
str.insert(0, 2, ' ');
assert(str ==
" HELLO WORLD");
str.insert(7, " foo");
assert(str ==
" HELLO foo WORLD");
assert(str.ends_with(
"WORLD"));
return 0;
}
#define assert(...)
Definition cassert.hpp:20
constexpr auto transform(InputIt first, InputIt last, OutputIt dest, UnaryOp op) -> OutputIt
Definition transform.hpp:25
constexpr auto toupper(int ch) noexcept -> int
Converts the given character to uppercase according to the character conversion rules defined by the ...
Definition toupper.hpp:27
The class template bitset represents a fixed-size sequence of Bits bits. Bitsets can be manipulated b...
Definition bitset.hpp:23
constexpr auto size() const noexcept -> size_t
Returns the number of bits that the bitset holds.
Definition bitset.hpp:211