tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
basic_format_string.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_FORMAT_BASIC_FORMAT_STRING_HPP
4#define TETL_FORMAT_BASIC_FORMAT_STRING_HPP
5
9
10namespace etl {
11
12template <typename CharT, typename... Args>
14 template <typename T>
16 consteval basic_format_string(T const& s)
17 : _str(s)
18 {
19 }
20
21 [[nodiscard]] constexpr auto get() const noexcept -> basic_string_view<CharT> { return _str; }
22
23private:
25};
26
27template <typename... Args>
29
30template <typename... Args>
32
33} // namespace etl
34
35#endif // TETL_FORMAT_BASIC_FORMAT_STRING_HPP
The concept convertible_to<From, To> specifies that an expression of the same type and value category...
Definition convertible_to.hpp:18
Definition adjacent_find.hpp:8
basic_format_string< char, type_identity_t< Args >... > format_string
Definition basic_format_string.hpp:28
basic_format_string< wchar_t, type_identity_t< Args >... > wformat_string
Definition basic_format_string.hpp:31
Definition basic_format_string.hpp:13
constexpr auto get() const noexcept -> basic_string_view< CharT >
Definition basic_format_string.hpp:21
consteval basic_format_string(T const &s)
Definition basic_format_string.hpp:16
The class template basic_string_view describes an object that can refer to a constant contiguous sequ...
Definition basic_string_view.hpp:34