kfr

Fast, modern C++ DSP framework, FFT, Sample Rate Conversion, FIR/IIR/Biquad Filters (SSE, AVX, AVX-512, ARM NEON)
Log | Files | Refs | README

commit 324a8a4bc35acf098d0bf38840f547558c447717
parent 81869ce9941e14c584326fbe235ca3ab4a6b7b3b
Author: d.levin256@gmail.com <d.levin256@gmail.com>
Date:   Sat, 27 Jan 2024 07:20:12 +0000

string_view representation

Diffstat:
Minclude/kfr/cometa/string.hpp | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/include/kfr/cometa/string.hpp b/include/kfr/cometa/string.hpp @@ -685,6 +685,15 @@ struct representation<std::vector<T, Allocator>> return array_to_string(value.size(), value.data()); } }; +template <> +struct representation<std::string_view> +{ + using type = std::string; + static std::string get(const std::string_view& value) + { + return std::string(value); + } +}; } // namespace cometa