3#ifndef TETL_STRING_STRING_CONSTANT_HPP
4#define TETL_STRING_STRING_CONSTANT_HPP
14template <
typename CharT, CharT... Chars>
21 static constexpr auto size() noexcept {
return storage.size(); }
23 static constexpr auto begin() noexcept {
return storage.cbegin(); }
25 static constexpr auto end() noexcept {
return storage.cend(); }
30template <
typename CharT, CharT... Chars>
31[[nodiscard]]
constexpr auto
37template <
typename CharT, CharT... CharsL, CharT... CharsR>
38[[nodiscard]]
constexpr auto
46template <auto CharArray>
48consteval auto to_string_constant()
59#define TETL_STRING_C(str) etl::detail::to_string_constant<etl::to_array(str)>()
constexpr auto size(C const &c) noexcept(noexcept(c.size())) -> decltype(c.size())
Returns the size of the given container c or array array. Returns c.size(), converted to the return t...
Definition size.hpp:18
Definition adjacent_find.hpp:8
constexpr auto operator==(inplace_function< R(Args...), Capacity, Alignment > const &f, nullptr_t) noexcept -> bool
Compares a etl::inplace_function with a null pointer. Empty functions (that is, functions without a c...
Definition inplace_function.hpp:262
etl::make_integer_sequence< etl::size_t, Size > make_index_sequence
Definition index_sequence.hpp:15
etl::integer_sequence< etl::size_t, Ints... > index_sequence
Definition index_sequence.hpp:12
TETL_BUILTIN_SIZET size_t
etl::size_t is the unsigned integer type of the result of the sizeof operator.
Definition size_t.hpp:14
A container that encapsulates fixed size arrays.
Definition array.hpp:48
The class template basic_string_view describes an object that can refer to a constant contiguous sequ...
Definition basic_string_view.hpp:34
Definition string_constant.hpp:15
static constexpr auto begin() noexcept
Definition string_constant.hpp:23
static constexpr auto end() noexcept
Definition string_constant.hpp:25
static constexpr auto storage
Definition string_constant.hpp:19
static constexpr auto size() noexcept
Definition string_constant.hpp:21
etl::basic_string_view< CharT > string_view_type
Definition string_constant.hpp:17
CharT value_type
Definition string_constant.hpp:16