mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2024-11-29 01:03:45 +00:00
30 lines
772 B
Text
30 lines
772 B
Text
|
.. _sprout-string-basic_string-wstring:
|
||
|
###############################################################################
|
||
|
wstring
|
||
|
###############################################################################
|
||
|
|
||
|
Interface
|
||
|
========================================
|
||
|
.. sourcecode:: c++
|
||
|
|
||
|
template<std::size_t N>
|
||
|
using wstring = sprout::basic_string<wchar_t, N>;
|
||
|
|
||
|
Examples
|
||
|
========================================
|
||
|
.. sourcecode:: c++
|
||
|
|
||
|
#include <type_traits>
|
||
|
#include <sprout/string.hpp>
|
||
|
using namespace sprout;
|
||
|
|
||
|
using type = wstring<8>;
|
||
|
static_assert(std::is_same<type::value_type, wchar_t>::value, "element type of wstring is charwchar_t
|
||
|
|
||
|
Header
|
||
|
========================================
|
||
|
|
||
|
| ``sprout/string/alias.hpp``
|
||
|
| Convenience header: ``sprout/string.hpp``
|
||
|
|