mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-04 14:14:09 +00:00
add index_tuple/integer_seq
This commit is contained in:
parent
6a78f64feb
commit
331aaa3559
14 changed files with 358 additions and 180 deletions
|
@ -2,25 +2,38 @@
|
|||
#define SPROUT_UTILITY_STRING_REF_ALIAS_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/string/char_traits.hpp>
|
||||
#include <sprout/utility/string_ref/string_ref.hpp>
|
||||
|
||||
namespace sprout {
|
||||
//
|
||||
// string_ref
|
||||
//
|
||||
typedef sprout::basic_string_ref<char> string_ref;
|
||||
//
|
||||
// wstring_ref
|
||||
//
|
||||
typedef sprout::basic_string_ref<wchar_t> wstring_ref;
|
||||
//
|
||||
// u16string_ref
|
||||
//
|
||||
typedef sprout::basic_string_ref<char16_t> u16string_ref;
|
||||
//
|
||||
// u32string_ref
|
||||
//
|
||||
typedef sprout::basic_string_ref<char> string_ref;
|
||||
typedef sprout::basic_string_ref<wchar_t> wstring_ref;
|
||||
typedef sprout::basic_string_ref<char16_t> u16string_ref;
|
||||
typedef sprout::basic_string_ref<char32_t> u32string_ref;
|
||||
//
|
||||
// string_view
|
||||
// wstring_view
|
||||
// u16string_view
|
||||
// u32string_view
|
||||
//
|
||||
typedef sprout::basic_string_ref<char> string_view;
|
||||
typedef sprout::basic_string_ref<wchar_t> wstring_view;
|
||||
typedef sprout::basic_string_ref<char16_t> u16string_view;
|
||||
typedef sprout::basic_string_ref<char32_t> u32string_view;
|
||||
|
||||
#if SPROUT_USE_TEMPLATE_ALIASES
|
||||
//
|
||||
// basic_string_view
|
||||
//
|
||||
template<typename T, typename Traits = sprout::char_traits<T> >
|
||||
using basic_string_view = sprout::basic_string_ref<T, Traits>;
|
||||
#endif // #if SPROUT_USE_TEMPLATE_ALIASES
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_UTILITY_STRING_REF_ALIAS_HPP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue