Container System 0.1.0
High-performance C++20 type-safe container framework with SIMD-accelerated serialization
Loading...
Searching...
No Matches
value_types.cpp
Go to the documentation of this file.
1// BSD 3-Clause License
2// Copyright (c) 2021, 🍀☀🌕🌥 🌊
3// See the LICENSE file in the project root for full license information.
4
5#include "value_types.h"
6
7namespace kcenon::container
8{
9 value_types convert_value_type(const std::string& target)
10 {
11 // Use the constexpr function for better performance
12 return get_type_from_string(target);
13 }
14
15 std::string convert_value_type(const value_types& target)
16 {
17 // Use the constexpr function and convert to std::string
18 return std::string(get_string_from_type(target));
19 }
20} // namespace kcenon::container
value_types convert_value_type(const std::string &target)