A helper function that converts an input value to a winrt::hstring containing the value's string representation. For more info, and a code example, see winrt::hstring functions and operators.
Syntaxinline winrt::hstring to_hstring(bool value);
inline winrt::hstring to_hstring(char16_t value);
inline winrt::hstring to_hstring(double value);
inline winrt::hstring to_hstring(float value);
inline winrt::hstring to_hstring(GUID const& value);
inline winrt::hstring to_hstring(winrt::hstring const& value) noexcept;
inline winrt::hstring to_hstring(int16_t value);
inline winrt::hstring to_hstring(int32_t value);
inline winrt::hstring to_hstring(int64_t value);
inline winrt::hstring to_hstring(int8_t value);
template <typename T> winrt::hstring to_hstring(T const& value);
inline winrt::hstring to_hstring(uint16_t value);
inline winrt::hstring to_hstring(uint32_t value);
inline winrt::hstring to_hstring(uint64_t value);
inline winrt::hstring to_hstring(uint8_t value);
Parameters
value
The value to convert into a new hstring object.
A new hstring object resulting from converting the parameter.
For the function template, specializations are generated only for types convertible from std::basic_string_view.
RequirementsMinimum supported SDK: Windows SDK version 10.0.17134.0 (Windows 10, version 1803)
Namespace: winrt
Header: %WindowsSdkDir%Include<WindowsTargetPlatformVersion>\cppwinrt\winrt\base.h (included by default)
See also Additional resources In this articleWas this page helpful?
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4