tetl
0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
wmemset.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSL-1.0
2
// SPDX-FileCopyrightText: Copyright (C) 2019 Tobias Hienzsch
3
4
#
ifndef
TETL_CWCHAR_WMEMSET_HPP
5
#
define
TETL_CWCHAR_WMEMSET_HPP
6
7
#
include
<
etl
/
_cstddef
/
size_t
.
hpp
>
8
#
include
<
etl
/
_strings
/
cstr
.
hpp
>
9
10
namespace
etl
{
11
12
/// Copies the wide character ch into each of the first count wide
13
/// characters of the wide character array pointed to by dest.
14
///
15
/// If overflow occurs, the behavior is undefined. If count is zero,
16
/// the function does nothing.
17
///
18
/// https://en.cppreference.com/w/cpp/string/wide/wmemset
19
constexpr
auto
wmemset
(
wchar_t
* dest,
wchar_t
ch,
etl
::size_t count)
noexcept
->
wchar_t
*
20
{
21
return
etl
::detail::memset(dest, ch, count);
22
}
23
}
// namespace etl
24
25
#
endif
// TETL_CWCHAR_WMEMSET_HPP
etl
Definition
adjacent_find.hpp:9
etl::wmemset
constexpr auto wmemset(wchar_t *dest, wchar_t ch, etl::size_t count) noexcept -> wchar_t *
Copies the wide character ch into each of the first count wide characters of the wide character array...
Definition
wmemset.hpp:19
include
etl
_cwchar
wmemset.hpp
Generated on Sun Sep 7 2025 19:14:54 for tetl by
1.9.8