From 826e6414a0af9039c08da4d7c2332e9d952620aa Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Wed, 10 Jul 2024 02:04:19 +0900 Subject: [PATCH] feat: add detail::is_std_basic_string to check if type T is a kind of std::basic_string --- include/toml11/traits.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/toml11/traits.hpp b/include/toml11/traits.hpp index 0a0fa79..69b6d1d 100644 --- a/include/toml11/traits.hpp +++ b/include/toml11/traits.hpp @@ -162,6 +162,12 @@ struct is_std_forward_list_impl> : std::true_type{}; template using is_std_forward_list = is_std_forward_list_impl>; +template struct is_std_basic_string_impl : std::false_type{}; +template +struct is_std_basic_string_impl> : std::true_type{}; +template +using is_std_basic_string = is_std_basic_string_impl>; + template struct is_chrono_duration_impl: std::false_type{}; template struct is_chrono_duration_impl>: std::true_type{};