mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2024-12-23 21:25:49 +00:00
sprout/string/alias.hpp 追加
This commit is contained in:
parent
097c9c5bed
commit
19db2587e5
2 changed files with 31 additions and 23 deletions
|
@ -903,29 +903,6 @@ namespace sprout {
|
|||
return sprout::fixed::append_back(lhs, rhs);
|
||||
}
|
||||
|
||||
#if 0
|
||||
//
|
||||
// string
|
||||
//
|
||||
template<std::size_t N>
|
||||
using string = sprout::basic_string<char, N>;
|
||||
//
|
||||
// wstring
|
||||
//
|
||||
template<std::size_t N>
|
||||
using wstring = sprout::basic_string<wchar_t, N>;
|
||||
//
|
||||
// u16string
|
||||
//
|
||||
template<std::size_t N>
|
||||
using u16string = sprout::basic_string<char16_t, N>;
|
||||
//
|
||||
// u32string
|
||||
//
|
||||
template<std::size_t N>
|
||||
using u32string = sprout::basic_string<char32_t, N>;
|
||||
#endif // #if 0
|
||||
|
||||
//
|
||||
// string_t
|
||||
//
|
||||
|
|
31
sprout/string/alias.hpp
Normal file
31
sprout/string/alias.hpp
Normal file
|
@ -0,0 +1,31 @@
|
|||
#ifndef SPROUT_STRING_ALIAS_HPP
|
||||
#define SPROUT_STRING_ALIAS_HPP
|
||||
|
||||
#include <cstddef>
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/string.hpp>
|
||||
|
||||
namespace sprout {
|
||||
//
|
||||
// string
|
||||
//
|
||||
template<std::size_t N>
|
||||
using string = sprout::basic_string<char, N>;
|
||||
//
|
||||
// wstring
|
||||
//
|
||||
template<std::size_t N>
|
||||
using wstring = sprout::basic_string<wchar_t, N>;
|
||||
//
|
||||
// u16string
|
||||
//
|
||||
template<std::size_t N>
|
||||
using u16string = sprout::basic_string<char16_t, N>;
|
||||
//
|
||||
// u32string
|
||||
//
|
||||
template<std::size_t N>
|
||||
using u32string = sprout::basic_string<char32_t, N>;
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_STRING_ALIAS_HPP
|
Loading…
Reference in a new issue